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

add --disable-install-doc to Ruby configure args to speed up installation time #133

Merged
merged 1 commit into from
Jun 19, 2024

Conversation

timsutton
Copy link
Contributor

@timsutton timsutton commented Jun 9, 2024

👋 I was looking at possible opportunities to speed up Ruby build time and this one seemed like a good candidate. I was able to shave off about 30 seconds by adding this flag to not compile docs material.

On my M3 Max laptop, installing Ruby 3.3.2 with current main:

0.08s user 0.12s system 0% cpu 1:21.58 total

With this change:

0.06s user 0.08s system 0% cpu 52.332 total

Another more extensible approach could be to make this part of a configurable configure arg setting passed into the rules' toolchain config. But I thought perhaps this is just a good start to add this as a way to speed up the rules fetch in general, and I couldn't really think of a reason someone would want doc generation for the core Ruby itself in the context of a Bazel build.

@timsutton timsutton marked this pull request as ready for review June 9, 2024 15:27
@p0deje
Copy link
Member

p0deje commented Jun 10, 2024

Thank you, I will merge as soon as CI passes.

Ideally, we should just download a prebuilt toolchain, but it's not possible at the moment as there are no such binaries.

@timsutton
Copy link
Contributor Author

Ideally, we should just download a prebuilt toolchain

Yeah, agree. It's hard without Ruby themselves providing a truly portable distribution.

@timsutton
Copy link
Contributor Author

@p0deje 👋 Just wanted to bump this one if you feel it's good to merge! 🙏

@p0deje
Copy link
Member

p0deje commented Jun 19, 2024

@p0deje 👋 Just wanted to bump this one if you feel it's good to merge! 🙏

Sorry, I started CI but then never followed up.

@p0deje p0deje merged commit 9594121 into bazel-contrib:main Jun 19, 2024
41 checks passed
@timsutton timsutton deleted the disable-install-doc branch June 19, 2024 19:09
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.

2 participants