Expand description
LRU cache for decoded posting lists, keyed by trigram. LRU cache for decoded posting lists, keyed by trigram.
Avoids re-decoding compressed posting lists from the mmap when the same trigram is queried repeatedly (e.g., across multiple queries in a daemon session, or when the same trigram appears in multiple query plan variants).
Structs§
- Cache
Stats - Hit/miss/eviction counters for a
PostingCache. - Posting
Cache - Thread-safe, memory-bounded LRU cache mapping
Trigram→PostingList.