scalalang2 / golang-fifo

Modern efficient cache design with simple FIFO queue only in Golang
MIT License
142 stars 7 forks source link

I read the paper and saw only 21 lines modification to golang code is needed to convert to be sieve? #33

Closed kolinfluence closed 3 months ago

kolinfluence commented 7 months ago

Looking at a lot of lru codes was wondering if it's possible to easily convert this to be sieve like too just to test out the one hit wonder issue.

This Lru cache sets by memory limit size instead of limit by item capacity https://github.com/cloudxaas/gocache/tree/main/lrux/bytes

Use NewLRUCache([memory size in bytes], [batch eviction count on full])

thinking in terms of "items capacity", normally the item size *

supports highly unproportional variable sized length for both keys and value.

p.s. : can someone check and see if it's that easy to convert to siege for testing? just curious that's all.