diff options
author | 2018-01-09 13:05:23 -0800 | |
---|---|---|
committer | 2018-01-09 13:06:59 -0800 | |
commit | 784db69f81adb869c673682831e538c733c33716 (patch) | |
tree | ae45374cf4d2c269dba497ddf95277d3a2ba41e7 /src/main/java/com/google/devtools/build/lib/skylarkdebug | |
parent | 995e157edbea8732769d63c3e0aecd29d6fa9774 (diff) |
Stop memoizing Label#hashCode()
Both members of Label (String & PackageIdentifier) have memoized hash codes so
this should be marginally more expensive but probably not noticably so. The
benefit is it makes Label objects smaller in certain vm conditions.
As to why things were the way they were, I believe this is from before
PackageIdentifier memoized its hashCode.
RELNOTES: None
PiperOrigin-RevId: 181362077
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/skylarkdebug')
0 files changed, 0 insertions, 0 deletions