-
Notifications
You must be signed in to change notification settings - Fork 283
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use HashMap with faster hashing algorithm for packfile writer
Summary: We use HashMap to store the set of objects written to packfile to ensure we do not add duplicate objects to the pack. These collections can grow quite large in which case the performance of the hashing algorithm plays a role in the overall runtime. Since the input to these collections are known to be safe, we do not need a cryptographic hash and can instead use a much faster non-cryptographic hashing algorithm used within the rust compiler Differential Revision: D54638708 fbshipit-source-id: 5053cf94598be3670ca2339878eeacb2a60eddd0
- Loading branch information
1 parent
555e33f
commit 5405dd8
Showing
3 changed files
with
10 additions
and
2 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
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
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