Skip to main content

intern_cached

Function intern_cached 

Source
pub fn intern_cached(name: &str, source_id: u32, text_offset: u32) -> Symbol
Expand description

Intern a string with caching by source ID and AST text offset.

First call for a given (source_id, text_offset): hash + intern (same cost as intern). Subsequent calls: FxHashMap u64 lookup (~5 ns) — no string hashing.