Skip to content

Pull out tmp from inner loop #1

@emilv

Description

@emilv

I think the tmp variable should be moved out from the inner loop. The current implementation moves the selected element by swapping, instead of writing it once where it should be. Is it even insertion sort right now?

This needs to be tested against the benchmarks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions