Open ToonTalk opened 5 years ago
Yeah, better to use the JIT-compiled version in the bigger data or frequency distribution analysis libraries.
I can confirm using the bigger data
sort is almost instant. It's building the actual list that takes most of the time (warping the repeat block fixes that too).
I've been poking at this. One issue is that using a plain build-your-own block is a lot faster than CALLing a lambda that you've put in a script variable because we don't have inner definitions.
@brianharvey as an old Smalltalker I wouldn't take any issue with a separate helper block in the palette, especially if it makes SORT faster...
Sorting 1000 numbers took almost 8 seconds on my laptop. Project attached.
sort timer.zip