-
Notifications
You must be signed in to change notification settings - Fork 37
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
Implement garbage collector for dict backend #115
Comments
Hello sir, |
Hello! Thanks to participate in this project. Any kind of participation is welcomed and appreciated. |
Quite a few questions but I think you'll answer these with delight 😄
but I think it could be
|
|
Because dict backend doesn't have any gc machansm, it can be infinitely inflated.
For now, this is warned in documentation but GC will make everyone happy even who doesn't read document.
Decision background: The most important feature of dict backend is transparency. So that user always can access to the bare key/value data of the backend. Due to this limitation, encoding or adding metadata is not a preferred way for dict backend.
Policy:
maxsize
maxsize
is 128. Let's follow@ring.lru
interface formaxsize
.maxsize
, the gc removes at least 25% ofmaxsize
.maxsize
The text was updated successfully, but these errors were encountered: