Repository navigation
v0.14.0 — Relay Hot-Path Optimization
Relay Hot-Path Optimization (FxHash + String Allocation Reduction)
Sprint 1: FxHash Replacement (~4% CPU savings)
Replaced SipHasher-1-3 (std default) with FxHash for all non-cryptographic HashMaps/HashSets. FxHash is the hasher used by the Rust compiler itself — ~3-4× faster for non-crypto workloads.
Sprint 2: String Allocation Reduction
from_json_obj/from_put_objtake&strinstead ofString(zero-alloc common path)- Added
TryFrom<&SerdeJsonValue>forValue(borrowing conversion) - Fixed
msg_id.to_string()→msg_id(was cloning owned String)
Benchmark Results (vs v0.13.0)
| Benchmark | v0.13.0 | v0.14.0 | Change |
|---|---|---|---|
| Local put (100k) | 46,380 | 47,499 | +2.4% |
| Relay 1×50k | 15,419 | 15,594 | +1.1% |
| Relay 10×5k | 11,355 | 11,966 | +5.4% |
Verification
- 384 native tests, 19 doctests, 7 WASM tests — all green
- 0 clippy warnings
cargo publish --dry-runpasses