aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/query2/output
diff options
context:
space:
mode:
authorGravatar Greg Estren <gregce@google.com>2016-09-29 17:29:02 +0000
committerGravatar Yun Peng <pcloudy@google.com>2016-09-30 08:12:24 +0000
commitf4612304c23070aa32a87a9eebb682c30e0f0ab2 (patch)
tree217cab7c0dd0aa675c4c6cdaf14d9b52e6da0b67 /src/main/java/com/google/devtools/build/lib/query2/output
parent14251a4ca0d61be24cd96506b9538b1f54047417 (diff)
ConfiguredTargetFunction#getDynamicConfigurations: halve the number of AttributeAndLabel instantiations. This shaves 25% off the method's execution time in --experimental_dynamic_configs=notrim mode.
This isn't a crucial optimization, since getDynamicConfigurations is already fast. Profiling: $ bazel shutdown; bazel build --nobuild //testapp:cc --experimental_dynamic_configs=notrim shows getDynamicConfigurations takes 1.3% of the analysis phase's CPU time before this change and 1.0% after. Before this change, AttributeAndLabel instantiation took 44% of the method's CPU time. After: 30%. Profiling done with JProfiler. -- MOS_MIGRATED_REVID=134677107
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/query2/output')
0 files changed, 0 insertions, 0 deletions