Set the default strategy of DexBuilder to use persistent workers.
This brings 1.2x speedup to clean local Android builds.
Fixes
RELNOTES: For Android incremental dexing actions, Bazel now persists its DexBuilder process across individual actions. From our benchmarks, this results in a 1.2x speedup for clean local builds.
@@ -96,6 +96,7 @@ public class BazelStrategyModule extends BlazeModule {
// Default strategies for certain mnemonics - they can be overridden by --strategy= flags.
builder.addStrategyByMnemonic("Javac", "worker");
builder.addStrategyByMnemonic("Closure", "worker");
+ builder.addStrategyByMnemonic("DexBuilder", "worker");
for (Map.Entry<String, String> strategy : options.strategy) {
String strategyName = strategy.getValue();
