Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify ComponentDescriptor.hashCode() and memoize it
For a very large internal component, saves roughly ~42 seconds on average (or 28%) over 10 runs. Memoizing the hashCode isn't as stupendous, but profiles do show that memoizing reduces the cost of the hashCode by an additional 10x (after the already big savings): 80ms -> 7ms RELNOTES=Build performance improvements ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=228529245
- Loading branch information