Skip to main content

Module posting_cache

Module posting_cache 

Source
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§

CacheStats
Hit/miss/eviction counters for a PostingCache.
PostingCache
Thread-safe, memory-bounded LRU cache mapping TrigramPostingList.