Expand description
String interning.
XTCE documents repeat the same identifiers many times: a parameter name appears in
<Parameter>, in every <ParameterRefEntry> that references it, and in every
<Comparison> that tests it. Interning collapses those to a single u32, which keeps
the IR small, makes equality a register compare, and lets the decoder key lookups on an
integer instead of a string.
Structs§
- FxHasher
- The hash used by
rustcitself: a multiply-xor-rotate mixer. - Interner
- An append-only string arena that hands out
NameIds. - NameId
- A handle to an interned string.