Skip to content

Replace local allocations with stack allocated spans #33781

@terrajobst

Description

@terrajobst

Flag places where known small temporary arrays of primitives (e.g. with a small constant length / where the total size of sizeof(T)*length can be determined to be less than some threshold) not inside any loop and not passed around could be replaced by span-based stackalloc.

Category: Performance

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions