Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make caching a config option #30

Open
ckcr4lyf opened this issue Feb 10, 2023 · 0 comments
Open

Make caching a config option #30

ckcr4lyf opened this issue Feb 10, 2023 · 0 comments

Comments

@ckcr4lyf
Copy link
Owner

Currently we cache announces in redis as a key, so we can GET it instead of ZRANGE on seeders & leechers, to imporove performance.

Of course, nothing is free, and for us this results in larger memory usage by redis (for caching of course).

While kiryuu is targeting performance, we should not assume the compromises that a user is willing to make (CPU vs RAM), depends on their available resources.

As such, we should allow deciding whether to enable the cache or not using a config option (compile time?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant