Constify more Iterator and DoubleEndedIterator functions required for Range - #162734
Conversation
|
Left a few comments about const-hacks, once you make those I'll run perf on this PR just as a safeguard. Otherwise, minus the explicit stuff mentioned, LGTM. |
259493a to
31922ed
Compare
|
I've removed the const hacks |
|
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Constify more Iterator and DoubleEndedIterator functions required for Range
This comment has been minimized.
This comment has been minimized.
|
Finished benchmarking commit (634f40b): comparison URL. Overall result: ❌✅ regressions and improvements - no action neededBenchmarking means the PR may be perf-sensitive. Consider adding rollup=never if this change is not fit for rolling up. @rustbot label: -S-waiting-on-perf -perf-regression Instruction countOur most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.
Max RSS (memory usage)Results (secondary 2.3%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (primary -8.1%, secondary -2.4%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeThis perf run didn't have relevant results for this metric. Bootstrap: 497.229s -> 495.175s (-0.41%) |
|
Looks like perf is expected consequences of constification, since it's under @bors r+ rollup |
Rollup of 6 pull requests Successful merges: - #162706 (Prefer exact derive imports over trait fallbacks) - #162732 (Fix unsound dealloc of reborrows from custom allocators) - #154113 (std::net: clamp multicast ttl value to u8 max.) - #161178 (lint ineffective #[unstable] annotations on re-exports) - #162717 (prevent ICE from `derive` on `repr(packed)` enum) - #162734 (Constify more Iterator and DoubleEndedIterator functions required for Range)
|
Note This PR was benchmarked as part of triage of its containing rollup: triage URL. Finished benchmarking commit (a4c4d95): comparison URL. Overall result: ✅ improvements - no action needed@rustbot label: -perf-regression Instruction countOur most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.
Max RSS (memory usage)Results (secondary 0.1%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (secondary 9.4%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeThis perf run didn't have relevant results for this metric. Bootstrap: missing data |
Extracted from #156216
Consitfies functions required for
const impl Iterator for Range.r? clarfonthey