-
Notifications
You must be signed in to change notification settings - Fork 746
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a cache around ASTHelpers.isInherited
This is called quite often, and with a very small number of distinct arguments. I'd like to speed up the actual implementation, or avoid calling it so often, but for starters introducing a cache speeds up the method by around 80%, shaving 2% off of the entire javac action. This adds a new dependency on Caffeine; I considered using a Guava Cache since we already depend on Guava, but Caffeine's version is 3 times as fast for this use case. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=259064453
- Loading branch information
1 parent
40a4ed4
commit bfb1789
Showing
2 changed files
with
31 additions
and
13 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