TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Fastest C++ LRU cache, using a hashset

3 pointsby nitnelavealmost 5 years ago

1 comment

nitnelavealmost 5 years ago
Author here, I was surprised not to find an LRU cache implementation in common libraries (STL, Boost), so I wanted to make my own.<p>This library is trying to make it easy to experiment with different backends (different maps, lists and so on). The fastest version is based on abseil&#x27;s node_hash_set, inspired by Java&#x27;s LinkedHashMap.