Skip to content

Make Array sortable or document "how" to do it #34

@joakim-brannstrom

Description

@joakim-brannstrom

Hello,

I have been unable to deduce how to "correctly" use std.algorithm.sort on an Array!T. A quick and dirty solution that I managed to make work where to expose _payload and use that directly.

But after I did that, ohh my, did Array work nice. I like it! Changing a from dynamic slices to Array and the GC pressure more than halved.

Regards, Joakim

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions