Skip to main content

Module cache

Module cache 

Source
Expand description

Extraction cache and BLAKE3 content fingerprinting.

Re-parsing source code with tree-sitter on every edit is expensive. The cache keeps the previous Arc<FileExtraction> for every file. A BLAKE3 fingerprint of the bytes decides whether the extraction is reused.

Structs§

ExtractionCache
Cache of per-file extraction results keyed by path.
Fingerprint
BLAKE3 cryptographic hash of a file’s raw bytes.

Functions§

fingerprint
Compute a deterministic 256-bit BLAKE3 fingerprint for content bytes.