-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
SpecForElem for i16/u16 and other digits #73995
Copy link
Copy link
Open
Labels
A-collectionsArea: `std::collections`Area: `std::collections`A-specializationArea: Trait impl specializationArea: Trait impl specializationC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.I-slowIssue: Problems and improvements with respect to performance of generated code.Issue: Problems and improvements with respect to performance of generated code.T-libsRelevant to the library team, which will review and decide on the PR/issue.Relevant to the library team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
A-collectionsArea: `std::collections`Area: `std::collections`A-specializationArea: Trait impl specializationArea: Trait impl specializationC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.I-slowIssue: Problems and improvements with respect to performance of generated code.Issue: Problems and improvements with respect to performance of generated code.T-libsRelevant to the library team, which will review and decide on the PR/issue.Relevant to the library team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
We have specialization for
SpecForElemfori8andu8(which provides a small performance win over plain extend for vec) but we could look into using specialization for that involves duplicating more digits withrep stosw(ordorq). It may need benchmarking to ensure that it's actually faster as mentioned by @joshtriplettI am not sure how to reproduce the assembly
rep stosw, someone that know could take up this issue.Previous discussion: https://rust-lang.zulipchat.com/#narrow/stream/219381-t-libs/topic/SpecForElem.20for.20other.20integers