v0.2.1
Performance patch recovering three regressions found by benchmarking 0.2.0 against 0.1.1.
Fixed
- Restored the
Asciihash_keyfast path: hashing storedKeylookup text no longer rescans for uppercase. The write pattern stays identical toPolicy::hash, so chunk-sensitive hashers remain safe. Key == Keycompares two inline keys as raw canonical bytes instead of decoding both lengths on every call.Key::from_boxkeeps an existing allocation rather than paying a copy plus free to inline it. Keys are stored inline only when that avoids the allocation entirely, so short keys built from ownedString/Box<str>input reuse their buffer again.
No API changes.