Open
Description
For types like SmallVec<[T; 1000]>
, or in general an enum where the variants have a huge difference in size, we should probably try to optimize the copies better.
Basically, for enums with some large-enough difference between variant sizes, we should use a branch when codegenning copies/moves.
I'm not sure how common this pattern is, but it's worth looking into!
cc @rust-lang/wg-codegen
Metadata
Metadata
Assignees
Labels
Area: Code generationArea: MIR optimizationsCategory: An issue proposing an enhancement or a PR with one.Category: An issue highlighting optimization opportunities or PRs implementing suchIssue: Problems and improvements with respect to performance of generated code.Relevant to the compiler team, which will review and decide on the PR/issue.