Module som_interpreter_bc::interner
source · Expand description
Facilities for string interning.
This is an implementation of a string interner.
It allows to bring down the memory usage from strings and allows for fast comparisons by replacing the strings by essentially an ID.
This particular implementation comes from matklad’s “Fast and Simple Rust Interner” blog post.
Structs§
- An interned string.
- A string interner.