Skip to content

Commit 39d6351

Browse files
authored
Merge pull request #216 from RalfJung/readme
note on HashDoS resistance
2 parents 376eee7 + b56595b commit 39d6351

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ in environments without `std`, such as embedded systems and kernels.
2727

2828
- Drop-in replacement for the standard library `HashMap` and `HashSet` types.
2929
- Uses [AHash](https://github.com/tkaitchuck/aHash) as the default hasher, which is much faster than SipHash.
30+
However, AHash does *not provide the same level of HashDoS resistance* as SipHash, so if that is important to you, you might want to consider using a different hasher.
3031
- Around 2x faster than the previous standard library `HashMap`.
3132
- Lower memory usage: only 1 byte of overhead per entry instead of 8.
3233
- Compatible with `#[no_std]` (but requires a global allocator with the `alloc` crate).

0 commit comments

Comments
 (0)