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

Java stub perf improvements #9314

Closed
wants to merge 2 commits into from

Conversation

anchlovi
Copy link

@anchlovi anchlovi commented Sep 3, 2019

When the classpath is too long the stub writes it to a manifest file

At Wix it is not unusual to find tests targets with a very long classpath. For a test target with 1.1MB long classpath and with over 2600 entries it takes over 55 seconds to construct and write the manifest file with the current stub.

With the suggested fix it takes ~20 millis to construct manifest file for the same target

@ittaiz
Copy link
Member

ittaiz commented Sep 3, 2019

Thanks @anchlovi! @iirina can you help with this?

@iirina iirina self-requested a review September 3, 2019 07:50
@iirina iirina self-assigned this Sep 3, 2019
@iirina iirina added the team-Rules-Java Issues for Java rules label Sep 3, 2019
Copy link
Contributor

@iirina iirina left a comment

Choose a reason for hiding this comment

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

Looks like a great improvement, thank you! Let's get it into bazel 1.0 :)

@bazel-io bazel-io closed this in b241646 Sep 3, 2019
gnarled-cipher pushed a commit to gnarled-cipher/bazel that referenced this pull request Sep 4, 2019
When the `classpath` is too long the stub writes it to a manifest file

At Wix it is not unusual to find tests targets with a very long `classpath`. For a test target with 1.1MB long `classpath` and with over 2600 entries it takes over 55 seconds to construct and write the manifest file with the current stub.

With the suggested fix it takes ~20 millis to construct manifest file for the same target

Closes bazelbuild#9314.

PiperOrigin-RevId: 266905451
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes team-Rules-Java Issues for Java rules
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants