-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Consolidate panicking functions in slice/index.rs
#145137
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
base: master
Are you sure you want to change the base?
Consolidate panicking functions in slice/index.rs
#145137
Conversation
This comment has been minimized.
This comment has been minimized.
6473bd2
to
2cc5be6
Compare
The Miri subtree was changed cc @rust-lang/miri |
2cc5be6
to
ea7033e
Compare
This comment has been minimized.
This comment has been minimized.
ea7033e
to
85e73f3
Compare
This comment has been minimized.
This comment has been minimized.
Thanks for the code. You could try |
85e73f3
to
9adc058
Compare
This comment has been minimized.
This comment has been minimized.
Consolidate all the panicking functions in `slice/index.rs` to use a single `slice_index_fail` function, similar to how it is done in `str/traits.rs`.
9adc058
to
5c0421d
Compare
@bors try @rust-timer queue |
@Kmeakin: 🔑 Insufficient privileges: not in try users |
This comment has been minimized.
This comment has been minimized.
I'm not convinced that this is an improvement, but on the other hand optimizations are weird. @bors2 try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
…<try> Consolidate panicking functions in `slice/index.rs`
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (fa10c86): comparison URL. Overall result: ❌✅ regressions and improvements - please read the text belowBenchmarking this pull request means it may be perf-sensitive – we'll automatically label it not fit for rolling up. You can override this, but we strongly advise not to, due to possible changes in compiler perf. Next Steps: If you can justify the regressions found in this try perf run, please do so in sufficient writing along with @bors rollup=never Instruction countOur most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.
Max RSS (memory usage)Results (primary 1.6%, secondary -2.5%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (primary 2.6%, secondary 3.2%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeResults (primary -0.1%, secondary -0.2%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Bootstrap: 464.993s -> 463.159s (-0.39%) |
While it's marked as a regression, it seems to be a very minor improvement in my eyes. But I'm no expert. cc @rust-lang/wg-compiler-performance for a second opinion. |
It's a wash, at least in terms of compile perf. @bors r=jhpratt |
Consolidate all the panicking functions in
slice/index.rs
to use a singleslice_index_fail
function, similar to how it is done instr/traits.rs
.Split off from #145024