-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reduce garbage created by
LtoBackendAction#computeBitcodeInputs
.
In a build with many `LtoBackendAction` this CL reduces: * Garbage allocated by that method by 99.8% * Total time spent doing full GC pauses by 97.3% * Wall time by 74.3% Don't pay too much attention to the exact numbers. I did only a single trial since each trial takes ~40m. Instead, just pay attention to the direction of the change :) Shout-out to jhorvitz@ for pointing out that `BitcodeFiles` is shared among `LtoBackendAction` instances and so weakly caching the result is the biggest macro optimization we can do. PiperOrigin-RevId: 718087528 Change-Id: I017528e60b1d23e430f1a5d06bcfa8061092057c
- Loading branch information
1 parent
c7f3b73
commit dd37d6e
Showing
2 changed files
with
40 additions
and
9 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