File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -13,15 +13,15 @@ let krate: rustdoc_types::Crate = serde_json::from_str(&json_string)?;
13
13
println! (" the index has {} items" , krate . index. len ());
14
14
```
15
15
16
- For performance sensitive crates we suggest turning on the ` rustc-hash `
16
+ For performance sensitive crates, consider turning on the ` rustc-hash `
17
17
feature. This switches all data structures from ` std::collections::HashMap ` to
18
18
` rustc-hash::FxHashMap ` which improves performance when reading big JSON files
19
19
(like ` aws_sdk_rs ` 's).
20
20
21
21
` cargo-semver-checks ` benchmarked this change with ` aws_sdk_ec2 ` 's JSON and
22
22
[ observed a -3% improvement to the runtime] [ csc benchmarks ] . The performance
23
23
here depends on how much time you spend querying the ` HashMap ` s, so as always,
24
- measure first c:
24
+ measure first.
25
25
26
26
[ csc benchmarks ] : https://rust-lang.zulipchat.com/#narrow/channel/266220-t-rustdoc/topic/rustc-hash.20and.20performance.20of.20rustdoc-types/near/474855731
27
27
You can’t perform that action at this time.
0 commit comments