Skip to main content

prewarm

Function prewarm 

Source
pub fn prewarm(idx: &VolumeIndex)
Expand description

Build the pool offset table ahead of the first query — the engine calls this once a volume turns Ready so no keystroke pays the cold cost.

The dir-path memo is not prewarmed: most sessions never issue a path query, and its footprint (full paths of every directory, ×2 pools) is real RAM. The first keystroke containing \ or path: builds it once; after a USN batch it was already rebuilt lazily, so nothing regresses.