Skip to main content

INTERN_THRESHOLD

Constant INTERN_THRESHOLD 

Source
pub const INTERN_THRESHOLD: usize = 32;
Expand description

Strings with byte length <= this value are candidates for interning. Chosen to cover common field names, enum tags, and short literals (e.g. “ok”, “err”, “id”, “name”, “type”, “value”) while excluding long user content where the hash cost dominates.