pub const SURFACES_HELD: usize = 512;Expand description
The surfaces a walk has already scanned, keyed by the file’s content.
A walk has to lex every file it enters to know what its directives are, and without this the lex is paid again on every walk: measured, 266 files took 1.05 s per walk and the same files’ surfaces cost 0.5 ms each to build once. Content-hashed rather than path-keyed, because a path with new text is a different surface.
How many are kept: one per distinct content, the table cleared when it fills — see Surfaces::of.