lru-dict
lru-dict copied to clipboard
A fast and memory efficient LRU cache for Python
was curious, even with the new builtin ordered dict, the simple python impl is still slower, but barely! should probably update the readme. no need to compare to old and...
Hi there, Our team (@1a1a11a) has developed a new cache eviction algorithm, called SIEVE. It’s simple, efficient, and scalable. **Why SIEVE could be a great addition**: - **Simplicity**: Integrating SIEVE...
Hi, do you have a plan for ttl support on items being saved?
trying to deepcopy an LRU object results in ```python TypeError: cannot pickle 'lru.LRU' object ``` it would be nice to be able to deepcopy LRU objects, though.
I use the **web3** module in my project, the **web3** module uses the **lru-dict** module. When building a project on Android via _bulldozer_, an error occurs: `python : [WARNING] Consider...
is it possible to make so it works on the bases of evicting first the Least Used instead of Least Recently Used ... i.e. based on usage not on recency...
We ran into an issue trying to create weak references to LRU objects: the current implementation of LRU does not support weak references. It would be straightforward to implement according...
You test command l.update({'a':1, 'b':2}) But in Python, the order that 'a' and 'b' is visited is random. So it might update key 'b' first, and then b become the...
It's always a bit weird to hit a segfault in Python! Here's a simple example that hits this issue: ``` import pickle from lru import LRU key_limit = 10 a...