Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace standard list sort with better sort #979

Open
tanyongkiam opened this issue Feb 4, 2024 · 0 comments
Open

Replace standard list sort with better sort #979

tanyongkiam opened this issue Feb 4, 2024 · 0 comments

Comments

@tanyongkiam
Copy link
Contributor

The default list sort has quadratic behavior on sorted (or nearly sorted) lists because it picks the pivot from the head of the list.

This issue is about potentially replacing:

https://github.com/CakeML/cakeml/blob/alist_subst/basis/ListProgScript.sml#L379

with the "OCaml-inspired" mergesort available in HOL.

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

No branches or pull requests

1 participant