-
Notifications
You must be signed in to change notification settings - Fork 349
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lib: memory optimization of
RepoPathComponent
Summary: As suggested by Yuya. This is actually a huge win in heap allocations for repositories with a lot of files; according to the bucket statistics from mimalloc, on gecko-dev, a repo of ~350,000 files, this reduces the number of small alloctions (8, 16, or 32 byte size class) from nearly ~4 million to just over ~200k, a 20x allocation reduction, with a total peak heap size reduction of over 50MiB. Signed-off-by: Austin Seipp <[email protected]> Change-Id: I4014145d740367ecec5be32c6b9e2de8
- Loading branch information
1 parent
f788fa8
commit f133756
Showing
5 changed files
with
50 additions
and
4 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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