-
Notifications
You must be signed in to change notification settings - Fork 742
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Most of these can be shared among matchers for the AST node they're processing - the only thing that (rarely) differs is the SuppressionState. Adding a check to decide whether we need to allocate a new object reduces time spent allocating (including the new time spent deciding) by 75%, from around 1.2% of javac time to 0.35% of javac time. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=258845118
- Loading branch information
1 parent
01515b0
commit 3e5af8e
Showing
2 changed files
with
20 additions
and
6 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