Skip to content

Array sort from Lua 5.1.5#158

Open
mingodad wants to merge 3 commits intoalbertodemichelis:masterfrom
mingodad:array-sort
Open

Array sort from Lua 5.1.5#158
mingodad wants to merge 3 commits intoalbertodemichelis:masterfrom
mingodad:array-sort

Conversation

@mingodad
Copy link
Contributor

Change the array sort by the one from Lua 5.1.5, it can sort with about half the calls made by the original sort function.
I made this change to SquiLu when profiling to speedup array operations and also added native numeric arrays "array_float64, array_float32, array_int64, array_int32, array_int16, array_int8" that works almost the same as the original "array" with exception that it only accept numeric values.

See mingodad/squilu@d32881d and up.

It can with some work be made to work with squirrel too.

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