Skip to content

Optimize vec::MoveIterator for POD types #10976

Closed
@erickt

Description

@erickt

vec::MoveIterator is written in such a way to be safe for dtors, but this is unnecessary overhead for POD types. Because vec is such an important type, it's worth optimizing for this case. I think all we need is to make use of std::libstd::needs_drop(), but I'm not completely sure if that's all that is needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions