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

optimization: switch fastbuild opt default to 1 from 0 #1091

Merged
merged 2 commits into from
Jan 12, 2022

Conversation

durin42
Copy link
Contributor

@durin42 durin42 commented Jan 12, 2022

This will very slightly increase build times but applies basic
optimizations that will do things like make iterators much
faster. Since fastbuild is how people iterate most of the time, this
seems like a sensible default value.

This will very slightly increase build times but applies basic
optimizations that will do things like make iterators _much_
faster. Since fastbuild is how people iterate most of the time, this
seems like a sensible default value.
@durin42
Copy link
Contributor Author

durin42 commented Jan 12, 2022

The windows test failure seems like it might be environmental?

@UebelAndre
Copy link
Collaborator

The windows test failure seems like it might be environmental?

The windows build is non-fatal but good to know about. The CI failure impacting you is docs being out of date. I wonder if you fix that and push a new commit if the windows build will work.

@hlopko
Copy link
Member

hlopko commented Jan 12, 2022

LGTM, @UebelAndre, I'd just like to have at least 2 approvals on this one, feel free to merge once you approve.

Copy link
Collaborator

@UebelAndre UebelAndre left a comment

Choose a reason for hiding this comment

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

Looks good to me as well! I don't expect this to be problematic but just as a heads up. I'd probably be quick to revert it and do some profiling to get a clear picture of the impact if someone complains 😅. But given that my team has a ton of targets we use in tools that are probably suffering from this while iterating, I thank you!

@UebelAndre UebelAndre merged commit 2048a65 into bazelbuild:main Jan 12, 2022
UebelAndre added a commit to UebelAndre/rules_rust that referenced this pull request Jan 14, 2022
UebelAndre added a commit to UebelAndre/rules_rust that referenced this pull request Jan 14, 2022
UebelAndre added a commit that referenced this pull request Jan 14, 2022
cfredric pushed a commit to cfredric/rules_rust that referenced this pull request Feb 16, 2022
* optimization: switch fastbuild opt default to 1 from 0

This will very slightly increase build times but applies basic
optimizations that will do things like make iterators _much_
faster. Since fastbuild is how people iterate most of the time, this
seems like a sensible default value.

* Regenerate documentation

Co-authored-by: Augie Fackler <augie@google.com>
cfredric pushed a commit to cfredric/rules_rust that referenced this pull request Feb 16, 2022
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