You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-12Lines changed: 9 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,7 @@ in environments without `std`, such as embedded systems and kernels.
37
37
38
38
Compared to the previous implementation of `std::collections::HashMap` (Rust 1.35).
39
39
40
-
With the hashbrown default AHash hasher ([without HashDoS-resistance](#Flags)):
40
+
With the hashbrown default AHash hasher:
41
41
42
42
```text
43
43
name oldstdhash ns/iter hashbrown ns/iter diff ns/iter diff % speedup
@@ -58,7 +58,7 @@ With the hashbrown default AHash hasher ([without HashDoS-resistance](#Flags)):
58
58
lookup_fail_ahash_serial 4,902 3,240 -1,662 -33.90% x 1.51
59
59
```
60
60
61
-
With the libstd default SipHash hasher (HashDoS-resistant):
61
+
With the libstd default SipHash hasher:
62
62
63
63
```text
64
64
name oldstdhash ns/iter hashbrown ns/iter diff ns/iter diff % speedup
@@ -99,19 +99,16 @@ map.insert(1, "one");
99
99
## Flags
100
100
This crate has the following Cargo features:
101
101
102
-
-`inline-more`: Adds inline hints to most functions, improving run-time performance at the cost
103
-
of compilation time. (enabled by default)
104
-
-`ahash`: Compiles with ahash as default hasher. (enabled by default)
105
-
-`ahash-run-time-rng`: Uses randomly generated keys for each hashmap to provide DOS resistance.
106
-
This requires the standard library. (disabled by default)
107
-
-`ahash-compile-time-rng`: This is an alternative to `ahash-run-time-rng` that works by pre-generating keys at
108
-
compile time and embedding them as constants. The avoids the dependency on the standard library but means the
109
-
binary will be slightly different each time it is compiled. (disabled by default)
110
-
-`nightly`: Enables nightly-only features including: `#[may_dangle]` and specialization to improve performance hashing
111
-
primitive types in aHash (if `ahash` is enabled).
102
+
-`nightly`: Enables nightly-only features including: `#[may_dangle]`
112
103
-`serde`: Enables serde serialization support.
113
104
-`rayon`: Enables rayon parallel iterator support.
114
105
-`raw`: Enables access to the experimental and unsafe `RawTable` API.
106
+
-`inline-more`: Adds inline hints to most functions, improving run-time performance at the cost
107
+
of compilation time. (enabled by default)
108
+
-`ahash`: Compiles with ahash as default hasher. (enabled by default)
109
+
-`ahash-compile-time-rng`: Activates the `compile-time-rng` feature of ahash. For targets with no random number generator
110
+
this pre-generates seeds at compile time and embeds them as constants. See [aHash's documentation](https://github.com/tkaitchuck/aHash#flags) (disabled by default)
0 commit comments