-
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.
Create separate class for Aspect keys with base aspects
Extend `AspectKey` with 2 classes: `SimpleAspectKey` for aspects not depending on other aspects and `AspectKeyWithBaseAspect` for aspects depending on one or more base aspects. This is for memory optimization as in most cases the aspect will not depend on other aspects and the `baseKeys` list will be empty and there is no need to hold a reference to it. Also replace `Objects.hashCode` with `HashCodes.hashObjects` PiperOrigin-RevId: 558245545 Change-Id: Iea8dc3ab71cc7f72dc591136a76f92b3b3831527
- Loading branch information
1 parent
0fa5e35
commit 5658b43
Showing
2 changed files
with
81 additions
and
35 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