Skip to content

Consider using System.Span #1448

Open
Open
@josetr

Description

@josetr

Cloning the whole native array is super fast or super slow depending on the size and maybe the consumer just wants to access a specific element, or perhaps just loop through the array.

Span also has a friendly ToArray() method if that's what the consumer really wants.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions