Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[core optimize] SignalSafe::ReuseEmptyList() avoids many allocations (#…
…1509) We TakePendingSignals() in the main interpreter loop, which shows up on benchmarks/compute/fib.sh. This change lets us avoid ~3K of ~150K allocations on that benchmark, or about 2%. These allocations also wouldn't fit in the proposed pool allocator for small objects, so they would result in a malloc() and free(), which is slow. Also shows up on benchmarks/gc and benchmarks/osh-runtime.
- Loading branch information
Showing
6 changed files
with
43 additions
and
8 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
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