Skip to content

switch RawSmallVec.inline to ManuallyDrop<[MaybeUninit<T>; N]> #583

Description

@alejandro-vaz

changing the inline representation of RawSmallVec allows us to use array indexing which is faster than direct pointer arithmetic

some time ago I built a prototype for a custom array stored in the stack that was evaluable at compile-time, it's usually a few percentage points faster (code here)

it seems it's because llvm optimizes it better but I have no idea

it makes handling it much easier as well

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

experimentPossible experimentsgood first issueGood for a first contributorhelp wantedNo clear candidate to implement itp-highhigh priorityr-performancerelated to performance

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions