Sorting algorithms/Merge sort: Difference between revisions

imported>Rcmlz
imported>Rcmlz
Line 6,552:
 
<syntaxhighlight lang="raku" line>
 
#| Recursive, batch tuned multi-thread, mergesort implementation
sub mergesort-parallel ( @a, $batch = 2**9 ) {
Line 6,585 ⟶ 6,586:
</syntaxhighlight>
 
Let's run some tests ...
 
<syntaxhighlight lang="raku" line>
Line 6,632 ⟶ 6,633:
ok 18 - a 🎮 3 z 4 🐧 => 3 4 a z 🎮 🐧</pre>
 
and some Benchmarking.
 
<syntaxhighlight lang="raku" line>
Anonymous user