Skip to content

Conversation

@copybara-service
Copy link
Contributor

Skip bytecode inference of the actual value for assume.

To do so, I've generalized our existing support for skipping bytecode inference, which I had originally set up for ExpectFailure in 3caa0e8 + 24b5a31.

This change improves the performance of failed assumptions. It makes the messages of the resulting AssumptionViolatedException somewhat worse, but my sense is that no one really looks at those. As discussed in b/478281659, we could go further by also avoiding cleaning stack traces, which probably also no one looks at.

RELNOTES=n/a

To do so, I've generalized our existing support for skipping bytecode inference, which I had originally set up for `ExpectFailure` in 3caa0e8 + 24b5a31.

This change improves the performance of failed assumptions. It makes the messages of the resulting `AssumptionViolatedException` somewhat worse, but my sense is that no one really looks at those. As discussed in b/478281659, we could go further by also avoiding cleaning stack traces, which probably also no one looks at.

RELNOTES=n/a
PiperOrigin-RevId: 860252016
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.

1 participant