forked from pantsbuild/pants
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimize
CreateDigest
implementation. (pantsbuild#16617)
Closes pantsbuild#16570 * Use a `DigestTrie` to create all snapshots at once, instead of creating them individually * Store all in-memory file contents in a single (batched) call, instead of storing them individually [ci skip-build-wheels] --- I restored the benchmark script from pantsbuild#14569 to test this. | size | create_digest_before | create_digest_after | | --- | --- | --- | | 20000 | 608 | 130 | | 40000 | 1164 | 268 | | 60000 | 2260 | 475 | | 80000 | 3582 | 674 | | 100000 | 5085 | 862 | | 120000 | 6765 | 1057 | | 140000 | 8818 | 1067 | | 160000 | 10752 | 1361 | | 180000 | 12619 | 1604 |
- Loading branch information
Showing
2 changed files
with
60 additions
and
37 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