Skip to content

util/must: revert API#108272

Merged
craig[bot] merged 4 commits intocockroachdb:masterfrom
erikgrinaker:revert-must
Aug 11, 2023
Merged

util/must: revert API#108272
craig[bot] merged 4 commits intocockroachdb:masterfrom
erikgrinaker:revert-must

Conversation

@erikgrinaker
Copy link
Copy Markdown
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
Copy Markdown
Member

This change is Reviewable

Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

bors r+

this makes me sad 😭

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

@craig
Copy link
Copy Markdown
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