mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-02-24 15:02:20 +01:00
https://github.com/tkaitchuck/aHash/pull/196 bumped the MSRV of `ahash` in a patch release, which makes it rather difficult for us to have it as a dependency. Further, it seems that `ahash` hasn't been particularly robust in the past, notably https://github.com/tkaitchuck/aHash/issues/163 and https://github.com/tkaitchuck/aHash/issues/166. Luckily, `core` provides `SipHasher` even on no-std (sadly its SipHash-2-4 unlike the SipHash-1-3 used by the `DefaultHasher` in `std`). Thus, we drop the `ahash` dependency entirely here and simply wrap `SipHasher` for our `no-std` HashMaps. |
||
---|---|---|
.. | ||
benches | ||
Cargo.toml | ||
README.md |
This crate uses criterion to benchmark various LDK functions.
It can be run as RUSTFLAGS=--cfg=ldk_bench cargo bench
.
For routing or other HashMap-bottlenecked functions, the hashbrown
feature
should also be benchmarked.