LRU implementation in C++
bottlenose.demon.co.uk
LRU implementation in C++
1–10 of 12 posts
Re: LRU implementation in C++
#2Re: LRU implementation in C++
#3How is this notable?
Re: LRU implementation in C++
#4Re: LRU implementation in C++
#5How is this notable?
How is your comment worthwhile?
So, how is this notable? Is it L2-cache friendly? Is it optimized not to fragment heap? Perhaps it's lockfree?
Re: LRU implementation in C++
#6For comparison's sake, here's a simple LRU in Erlang: http://erlangquicktips.heroku.com/2008/10/05/an-erlang-lru-m...
[1] http://docs.oracle.com/javase/6/docs/api/java/util/LinkedHas...
Re: LRU implementation in C++
#7In fact, you may remember that Google was sued over this last year: http://news.cnet.com/8301-13577_3-20056192-36.html?part=rss&...
Granted, using a timestamp to expire hash table entries is probably different enough from using a timestamp to evict cache entries where I would hope this wouldn't hold up in court, but IANAL and I could be totally wrong here. Another possibility is that there could be a totally different patent that already covers this algorithm.
Re: LRU implementation in C++
#8For comparison's sake, here's a simple LRU in Erlang: http://erlangquicktips.heroku.com/2008/10/05/an-erlang-lru-m...
https://github.com/clojure/core.cache/blob/master/src/main/c...