Skip to content

v0.2.1

Choose a tag to compare

@themixednuts themixednuts released this 31 Jul 07:23
· 5 commits to main since this release

Performance patch recovering three regressions found by benchmarking 0.2.0 against 0.1.1.

Fixed

  • Restored the Ascii hash_key fast path: hashing stored Key lookup text no longer rescans for uppercase. The write pattern stays identical to Policy::hash, so chunk-sensitive hashers remain safe.
  • Key == Key compares two inline keys as raw canonical bytes instead of decoding both lengths on every call.
  • Key::from_box keeps 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 owned String/Box<str> input reuse their buffer again.

No API changes.