Yiling-J
Yiling-J
Or you can try my high hit ratio & good perofrmance generic cache package: https://github.com/Yiling-J/theine-go
hit ratio benchmark results of my package and ristretto: https://github.com/Yiling-J/go-cache-benchmark-plus
Another optimization to sketch could be cache line fit, this may decrease hit ratio results slightly, around 1% in my [Theine](https://github.com/Yiling-J/theine-go) benchmark case. But will improve sketch performance when sketch...
I think Caffeine's sketch(new cache line fit version) is very good. For people who want to fork ristretto and do some changes, maybe just copying Caffeine's sketch is enough. BTW...
You could try some widely adopted trace, for example ds1, s3 from arc paper. From my benchmark Ristretto is not good. If Stretto's implentmention is exactly same as Ristretto, I'm...
I agree, but from the image in their blog post and README, the hit ratio should be higher. If you use the same technique(write to buf first), and your benchmark...
I think it's just switching the order, first writing to map, then adding to write buffer. I think Ristretto write to buffer first because write buffer is a channel, they...
AFAIK none of current Python cache packages has weighted cache. If you need this feature, please leave a comment or emoji.
@elbaro Could you please elaborate on the use cases for unlimited and empty? Theine uses several queues and LRUs to improve hit ratio, all of which are size-aware. If size...
@elbaro The first case is very simple. I think a dictionary with a TTL field is sufficient. In your second example, what's the purpose of cache? If you want to...