Skip to main content

INTERN_CAP

Constant INTERN_CAP 

Source
pub const INTERN_CAP: usize = 8192;
Expand description

Hard cap on pool size. When reached, new strings bypass interning. Sized to comfortably fit all stdlib field names + enum tags + common literals across a large program. Entries are never evicted once inserted (the pool owns an Arc ref keeping the string alive).