Skip to content

vec::reserve should reserve the exact amount requested #1753

@brson

Description

@brson

This function currently reserves to the next power of two. This makes sense during compiler push operations, but the library function is typically called when the final size of the vector is known. Even when that assumption isn't correct we'll end up allocating to the next power of two on the next push.

Metadata

Metadata

Assignees

No one assigned

    Labels

    E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions