Skip to content

Commit

Permalink
Enable persistent workers for Desugar by default for Bazel
Browse files Browse the repository at this point in the history
Default Desugar to use persistent workers as a sane default. Measured to reduce local build times by up to 20%.

RELNOTES: Android desugaring actions now use persistent workers by default. This has been measured to provide up to 20% reduction in build times. To disable it, use the `--strategy=Desugar=sandboxed` flag. See #8342 and #8427 for more details on local build speed optimization for Android apps.

Closes #8448.

PiperOrigin-RevId: 250531699
  • Loading branch information
jin authored and copybara-github committed May 29, 2019
1 parent ac0caa7 commit 6eda6b5
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ public void executorInit(CommandEnvironment env, BuildRequest request, ExecutorB
builder.addStrategyByMnemonic("Javac", ImmutableList.of("worker"));
builder.addStrategyByMnemonic("Closure", ImmutableList.of("worker"));
builder.addStrategyByMnemonic("DexBuilder", ImmutableList.of("worker"));
builder.addStrategyByMnemonic("Desugar", ImmutableList.of("worker"));

// The --spawn_strategy= flag is a bit special: If it's set to the empty string, we actually
// have to pass a literal empty string to the builder to trigger the "use the strategy that
Expand Down

0 comments on commit 6eda6b5

Please sign in to comment.