Skip to content

Consider specializing std::vec::from_elem to calloc when possible #38723

Closed
@sfackler

Description

@sfackler

This will require adding calloc to the global allocator API, but can significantly speed up situations where a large buffer is allocated but not entirely used.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-enhancementCategory: An issue proposing an enhancement or a PR with one.I-slowIssue: Problems and improvements with respect to performance of generated code.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions