diff options
author | 2018-01-24 08:43:35 -0800 | |
---|---|---|
committer | 2018-01-24 08:44:59 -0800 | |
commit | a39a562850bc17182d2ee0d86177457f27453bef (patch) | |
tree | 29077fc35356e20034b0402e546a157faebd4d02 /src/main/java/com/google/devtools/build/lib/worker | |
parent | 86d206129aae21567c3d7e6adba7d3939970b019 (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/worker')
0 files changed, 0 insertions, 0 deletions