-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Iterator performance regression 1.81 -> 1.82 #137727
Copy link
Copy link
Open
Labels
C-bugCategory: This is a bug.Category: This is a bug.P-mediumMedium priorityMedium priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.regression-untriagedUntriaged performance or correctness regression.Untriaged performance or correctness regression.
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.P-mediumMedium priorityMedium priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.regression-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:
I expected to see this happen: code behaves the same across compiler versions
Instead, this happened: code runs 80% slower when compiled with Rust 1.82+
Version it worked on
It most recently worked on: Rust 1.81
Version with regression
rustc --version --verbose:More details in this post
https://internals.rust-lang.org/t/iterator-performance-regression-1-81-1-82/22473