Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
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:
maxsizemaxsizeis 128. Let's follow@ring.lruinterface formaxsize.maxsize, the gc removes at least 25% ofmaxsize.maxsize