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 HOMEBREW_BOOTSNAP for developers #10680
Conversation
- Enable it by default if you've run a developer command or set `HOMEBREW_DEVELOPER`. - Clarify the documentation that there's various configuration in which it doesn't work. I've rolled this out of most of GitHub's developers with no ill effects and we've enabled it in both CI and for various maintainers so it feels appropriate to have a bigger rollout.
Review period will end on 2021-02-24 at 09:35:27 UTC. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I, personally, haven't been using this, but I'm 👍 to start enabling it for developers (and myself) based on the success so far (which I can conclude based on the lack of PRs or issues about fixing it)
I've just experimented with it:
|
@@ -584,6 +584,11 @@ then | |||
export HOMEBREW_BOTTLE_DOMAIN="$HOMEBREW_BOTTLE_DEFAULT_DOMAIN" | |||
fi | |||
|
|||
if [[ -n "$HOMEBREW_DEVELOPER" || -n "$HOMEBREW_DEV_CMD_RUN" ]] | |||
then | |||
export HOMEBREW_BOOTSNAP="1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You would have better performance if you rewrote brew in rust.
(Don't hit me, I'm just kidding!)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wait, HOMEBREW_BOOTSNAP
doesn't run Homebrew in Rust? That's what I thought it did...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I look forward to the day where we install brew
to build brew
.
These are IO bound and
The speedup here is mostly due to speeding up |
Review period ended. |
Just as a FYI: Homebrew/discussions#923 (I think it might be fixable with some SDKROOT stuff, but I need more information on their setups first.) |
Actually maybe we should have a |
HOMEBREW_DEVELOPER
.I've rolled this out of most of GitHub's developers with no ill effects and we've enabled it in both CI and for various maintainers so it feels appropriate to have a bigger rollout. @Homebrew/brew: any thoughts?