Module string_interner

Module string_interner 

Source
Expand description

Global string interning for reducing memory allocations.

Provides a thread-safe string interner that deduplicates strings across the entire codebase, reducing memory usage and enabling fast pointer-based string comparisons.

Structs§

StringInterner
Thread-safe string interner using DashMap.

Statics§

GLOBAL_INTERNER
Global thread-safe string interner.

Functions§

intern
Interns a string slice using the global interner.
intern_owned
Interns an owned String using the global interner.