-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: faster VisibilityTracker::from_crate (#404)
* feat: faster VisibilityTracker::from_crate We reduce the number of times `&Id`s get hashed and get a nice perf boost thanks to that. Numbers on my machine: ```console $ cargo criterion --bench indexed_crate IndexedCrate/new(aws-sdk-ec2) time: [1.5595 s 1.5713 s 1.5827 s] change: [-8.3651% -7.5024% -6.6525%] (p = 0.00 < 0.05) Performance has improved. ``` * Update src/visibility_tracker.rs --------- Co-authored-by: Predrag Gruevski <[email protected]>
- Loading branch information
1 parent
f159a30
commit 3fd81c0
Showing
1 changed file
with
17 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters