Skip to content

Optimize vec.truncate and destructors for types with no dtor at -O0 #17633

@bvssvni

Description

@bvssvni

The internal representation of String is Vec<u8>, but vec.truncate loops to drop members.

Perhaps setting the length directly?

Metadata

Metadata

Assignees

No one assigned

    Labels

    I-slowIssue: Problems and improvements with respect to performance of generated code.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions