Click here to Skip to main content
15,886,199 members
Articles / Programming Languages / C++

Multi Level Cache that Does Up To A Billion Lookups Per Second in C++

Rate me:
Please Sign up or sign in to vote.
4.99/5 (26 votes)
29 Oct 2021GPL331 min read 30.7K   43  
Direct mapped cache in front, LRU approximation behind, any LLC on back-end.
Caching algorithm that has 1-2 nanosecond average latency to each cache-hit and not-too-slow cache-miss functions to the middle layer LRU. CLOCK-second-chance algorithm is used in this middle layer cache implementation and it is fast because of not-allocating any new node during cache eviction. For multithreading & read-only access, a third synchronized LRU is used.

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The GNU General Public License (GPLv3)


Written By
Turkey Turkey
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions