-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Incremental GC: Optimize occupied size computation (#4021)
This is a minor optimization for the incremental GC: Currently, the occupied heap size is computed by iterating through the partition table which is performed on each GC scheduling point. This optimization caches the heap size, by precomputing the occupied size in all partitions except for the dynamic space of the current allocation partition (where the dump allocator is active). Instructions executed on GC scheduling: Unoptimized | Optimized | Saving -------------| --------------- |----- 5899 | 322 | 95% In the GC benchmark, the performance gain is, however, negligible. It could be more relevant when moving to 64-bit.
- Loading branch information
1 parent
33b481c
commit 8bc3853
Showing
1 changed file
with
31 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