aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/unix
diff options
context:
space:
mode:
authorGravatar janakr <janakr@google.com>2018-01-24 08:43:35 -0800
committerGravatar Copybara-Service <copybara-piper@google.com>2018-01-24 08:44:59 -0800
commita39a562850bc17182d2ee0d86177457f27453bef (patch)
tree29077fc35356e20034b0402e546a157faebd4d02 /src/main/java/com/google/devtools/build/lib/unix
parent86d206129aae21567c3d7e6adba7d3939970b019 (diff)
Introduce a wrapper around the ImmutableSortedSet<Class<? extends BuildConfiguration.Fragment>> set of Fragment classes that is part of the BuildConfigurationValue.Key. This class allows us to compute a fingerprint of the wrapped ImmutableSortedSet, making equality comparisons fast. The number of additional wrapper objects is the number of distinct sets of fragment classes, so 1. (In fact, we don't even need to compute a fingerprint, since reference equality does the job for us here, but we do it just to be conservative.)
This CL has a performance benefit for Bazel currently, but has a bigger performance benefit in the following changes, where there are more BuildConfigurationValue.Key objects to compare. PiperOrigin-RevId: 183090122
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/unix')
0 files changed, 0 insertions, 0 deletions