Skip to main content

Cache/
PathCanon.rs

1//! Process-wide canonical-path cache.
2//!
3//! Keyed by lexical input path; value is the result of
4//! `dunce::canonicalize`. Hits skip the syscall; misses run it and
5//! cache the result.
6//!
7//! The fs-scope security gates that Mountain layers around every
8//! incoming path canonicalise repeatedly during boot: 113 extension
9//! manifest paths, ~80 chunked workbench JS imports, ~60 git-extension
10//! scope checks, every `vscode-file://` request. Collapsing repeats to
11//! a hash lookup saves ~150 ms cumulative on the boot path.
12//!
13//! `time_to_idle = 60s`: resets on each access, so hot paths stay
14//! cached indefinitely while one-shot paths evict naturally. Bounds
15//! staleness against external `mv` / rename.
16
17pub mod CacheStats;
18
19pub mod Canonicalize;
20
21pub mod CanonicalizeUncached;
22
23pub mod Clear;
24
25pub mod Invalidate;
26
27pub mod SpawnDiagnosticLogger;
28
29pub mod Stats;
30
31pub(crate) mod Cache;