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

util/must: revert API #108272

Merged
merged 4 commits into from
Aug 11, 2023
Merged

util/must: revert API #108272

merged 4 commits into from
Aug 11, 2023

Conversation

erikgrinaker
Copy link
Contributor

This patch reverts #106508, since @RaduBerinde pointed out a performance flaw where it will often incur an allocation on the happy path due to interface boxing of the format args. Other options are considered in #108169.

We'll revisit runtime assertions with a different API that avoids this cost on the happy path.

@erikgrinaker erikgrinaker self-assigned this Aug 7, 2023
@erikgrinaker erikgrinaker requested a review from a team August 7, 2023 08:18
@erikgrinaker erikgrinaker requested a review from a team as a code owner August 7, 2023 08:18
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Contributor

@knz knz left a comment

Choose a reason for hiding this comment

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

this makes me sad 😭

@erikgrinaker
Copy link
Contributor Author

bors r+

this makes me sad 😭

Yeah, it's a shame, but we'll come up with something else.

@craig
Copy link
Contributor

craig bot commented Aug 11, 2023

Build succeeded:

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.

3 participants