Skip to content

Binary insertion sort#3

Draft
Kerl13 wants to merge 3 commits intomasterfrom
kerl/binary_insertion_sort
Draft

Binary insertion sort#3
Kerl13 wants to merge 3 commits intomasterfrom
kerl/binary_insertion_sort

Conversation

@Kerl13
Copy link
Member

@Kerl13 Kerl13 commented Feb 13, 2021

This is meant to be used for sorting small arrays.

I think (?) I fully specified the behaviour of both functions but a second look is more than welcome

Also expose an auxiliary function which is going to be useful for
TimSort and cie.
[Array.blit t ofs t (ofs + 1) len] uses memmove under the hood which
allocates a temporary array, this is terrible in terms of performance.
@Kerl13 Kerl13 marked this pull request as draft February 16, 2021 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant