FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Add sort support from @thomasmulvaney by halgari · Pull Request #361 · pixie-lang/pixie · GitHub

Add sort support from @thomasmulvaney - #361

Open
halgari wants to merge 1 commit into
masterfrom
add-sorting
Open

halgari wants to merge 1 commit into
masterfrom
add-sorting

Conversation

halgari commented Aug 20, 2015

Copy link
Copy Markdown
Member

Re-adds @thomasmulvaney's merge-sort. It's not a bad algorithm, although the JIT will probably throw a fit with it. We should improve it in the future to a) use mutable arrays during sorting and b) investigate how to get the JIT to be happier. Perhaps we should re-write it in RPython to get C-like speeds and call into Pixie for the comparisons. At any rate, we need some sort of sort at this point. So let's work with this.

Copy link
Copy Markdown
Member

I agree its not ideal. We could probably copy rpythons listsort code and make it so a comparison function can be passed.

Copy link
Copy Markdown
Member

@halgari I've just implemented a better version using pixies mutable arrays and get performance on par with Clojure when run in JIT mode. It just needs some tidying up.

heyLu mentioned this pull request Nov 7, 2015
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

2 participants


Back | FazBrowse Home | New Git URL