-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Clamp instead of asserting in FileEncoder::write_with #116188
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
Conversation
@bors try @rust-timer queue |
Clamp instead of asserting in FileEncoder::write_with r? `@WaffleLapkin` If this isn't the regression mentioned in rust-lang#115542 (comment) I'd have to actually look into it.
☀️ Try build successful - checks-actions |
@rust-timer build af63746 |
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (af63746): comparison URL. Overall result: ❌ regressions - ACTION NEEDEDBenchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR may lead to changes in compiler perf. Next Steps: If you can justify the regressions found in this try perf run, please indicate this with @bors rollup=never Instruction countThis is a highly reliable metric that was used to determine the overall result at the top of this comment.
Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesThis benchmark run did not return any relevant results for this metric. Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 631.857s -> 630.663s (-0.19%) |
|
||
#[cold] | ||
#[inline(never)] | ||
fn panic_invalid_write<const N: usize>(written: usize) { |
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.
haven't caught it during the original review, but if we'll leave this in, this funciton should probably return !
The point of this PR was to figure out if this is the regression in question. The perf report above says it isn't. It's upsetting that this makes things slower but it's cool that we now know the assertion doesn't have runtime cost compared to the sound alternatives. |
r? @WaffleLapkin
If this isn't the regression mentioned in #115542 (comment) I'd have to actually look into it.