Skip to content

Commit 3cbf241

Browse files
committed
README reword
1 parent 28b4f6e commit 3cbf241

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ let krate: rustdoc_types::Crate = serde_json::from_str(&json_string)?;
1313
println!("the index has {} items", krate.index.len());
1414
```
1515

16-
For performance sensitive crates we suggest turning on the `rustc-hash`
16+
For performance sensitive crates, consider turning on the `rustc-hash`
1717
feature. This switches all data structures from `std::collections::HashMap` to
1818
`rustc-hash::FxHashMap` which improves performance when reading big JSON files
1919
(like `aws_sdk_rs`'s).
2020

2121
`cargo-semver-checks` benchmarked this change with `aws_sdk_ec2`'s JSON and
2222
[observed a -3% improvement to the runtime][csc benchmarks]. The performance
2323
here depends on how much time you spend querying the `HashMap`s, so as always,
24-
measure first c:
24+
measure first.
2525

2626
[csc benchmarks]: https://rust-lang.zulipchat.com/#narrow/channel/266220-t-rustdoc/topic/rustc-hash.20and.20performance.20of.20rustdoc-types/near/474855731
2727

0 commit comments

Comments
 (0)