@@ -31,7 +31,7 @@ default. SipHash, however, is [not very fast] at hashing small keys. As shown,
31
31
however, the [ FNV hash algorithm] is much faster for these size of inputs. This
32
32
means that by switching hash algorithms for types like ` HashMap<usize, V> `
33
33
there can be a significant speedup so long as the loss of DOS protection is
34
- acceptable.
34
+ acceptable.
35
35
36
36
[ Siphash ] : https://en.wikipedia.org/wiki/SipHash
37
37
[ not very fast ] : http://cglab.ca/~abeinges/blah/hash-rs/
@@ -43,16 +43,16 @@ create a `HashMap` via:
43
43
``` rust
44
44
extern crate fnv;
45
45
46
- use std :: collections :: HashMap ;
47
- use std :: hash :: BuildHasherDefault ;
48
- use fnv :: FnvHasher ;
49
-
50
- type MyHasher = BuildHasherDefault <FnvHasher >;
51
-
46
+ use std :: collections :: HashMap ;
47
+ use std :: hash :: BuildHasherDefault ;
48
+ use fnv :: FnvHasher ;
49
+
50
+ type MyHasher = BuildHasherDefault <FnvHasher >;
51
+
52
52
fn main () {
53
53
let mut map : HashMap <_ , _ , MyHasher > = HashMap :: default ();
54
- map . insert (1 , " Hello" );
55
- map . insert (2 , " , world!" );
54
+ map . insert (1 , " Hello" );
55
+ map . insert (2 , " , world!" );
56
56
println! (" {:?}" , map );
57
57
}
58
58
```
@@ -94,8 +94,8 @@ There were a few small updates to Cargo:
94
94
profiles to pull in dev-dependencies during testing and such.
95
95
96
96
97
- [ improvement to build scripts] : https://github.com/rust-lang/cargo/pull/2279
98
- [ modification to the ` cargo rustc ` subcommand] : https://github.com/rust-lang/cargo/pull/2224
97
+ [ improvement to build scripts ] : https://github.com/rust-lang/cargo/pull/2279
98
+ [ modification to the `cargo rustc` subcommand ] : https://github.com/rust-lang/cargo/pull/2224
99
99
100
100
### Contributors to 1.7
101
101
0 commit comments