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 bazelbuild#8342 and bazelbuild#8427 for more details on local build speed optimization for Android apps.

Closes bazelbuild#8448.

PiperOrigin-RevId: 250531699
  • Loading branch information
jin authored and irengrig committed Jun 18, 2019
1 parent e39c0b8 commit a9fc454
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 a9fc454

Please sign in to comment.