Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable --compile-zinc-use-classpath-jars by default #4525

Merged
merged 4 commits into from Apr 29, 2017

Conversation

stuhood
Copy link
Sponsor Member

@stuhood stuhood commented Apr 27, 2017

Problem

According to Twitter's internal benchmark suite, the --compile-zinc-use-classpath-jars (ie: "use zjars") option used to effectively disable incremental compile by causing entire classpath entries to be invalidated.

But it looks like the zinc 1.0.0-X upgrade (in November, approximately) removed this limitation: zinc now correctly tracks changes in classpath jars, without fully invalidating downstream targets.

Solution

Enable --compile-zinc-use-classpath-jars by default, and deprecate the option.

Result

JVM compiles should be 20%-40% faster on rotational drives (anecdotally, the impact is less pronounced on SSDs). Additionally, further improvements might be possible now that loose classfiles only need to be present during a compile (see #4524).

Copy link
Member

@kwlzn kwlzn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@stuhood stuhood merged commit 94775d9 into pantsbuild:master Apr 29, 2017
@stuhood stuhood deleted the stuhood/zjars-by-default branch April 29, 2017 00:10
thesamet pushed a commit to thesamet/pants that referenced this pull request May 9, 2017
### Problem

According to Twitter's internal benchmark suite, the `--compile-zinc-use-classpath-jars` (ie: "use zjars") option used to effectively disable incremental compile by causing entire classpath entries to be invalidated.

But it looks like the `zinc` `1.0.0-X` upgrade (in November, approximately) removed this limitation: zinc now correctly tracks changes in classpath jars, without fully invalidating downstream targets.

### Solution

Enable `--compile-zinc-use-classpath-jars` by default, and deprecate the option.

### Result

JVM compiles should be 20%-40% faster on rotational drives (anecdotally, the impact is less pronounced on SSDs). Additionally, further improvements might be possible now that loose classfiles only need to be present _during_ a compile (see pantsbuild#4524).
baroquebobcat added a commit to baroquebobcat/pants that referenced this pull request May 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants