-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
RangeInclusive performance regression in beta + nightly #119643
Copy link
Copy link
Closed
Labels
A-const-propArea: Constant propagationArea: Constant propagationA-mir-optArea: MIR optimizationsArea: MIR optimizationsC-bugCategory: This is a bug.Category: This is a bug.P-mediumMedium priorityMedium priorityregression-untriagedUntriaged performance or correctness regression.Untriaged performance or correctness regression.
Metadata
Metadata
Assignees
Labels
A-const-propArea: Constant propagationArea: Constant propagationA-mir-optArea: MIR optimizationsArea: MIR optimizationsC-bugCategory: This is a bug.Category: This is a bug.P-mediumMedium priorityMedium priorityregression-untriagedUntriaged performance or correctness regression.Untriaged performance or correctness regression.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Code
I tried this code:
https://github.com/conradludgate/iter-num-tools/blob/024f521782cd241dea81d031cf802f22fc66bab9/benches/gridspace.rs
I expected to see this happen: Benchmark results to stay consistent between versions
Instead, this happened:
Version it worked on
It most recently worked on:
Version with regression
rustc +beta --version --verbose:rustc +nightly --version --verbose:More info
I haven't been able to fully track down the regression, but it has something to do with RangeInclusive. Changing the benchmark to
grid_space([1.0, 1.0]..[100.0, 100.0], 200)shows much less difference between versions. So far, the smallest I have reduced the repro is https://gist.github.com/conradludgate/b604d1ab0898df3babd80e384377c2b2