Optimizing Java using D

Peter Alexander via Digitalmars-d digitalmars-d at puremagic.com
Fri Jun 20 18:48:18 PDT 2014


On Saturday, 21 June 2014 at 01:07:20 UTC, safety0ff wrote:
> std.algorithm.sort with SwapStrategy.unstable is considerably 
> slower than his, whereas builtin sort is  abysmal.
>
> I find that generally using SwapStrategy.stable performs better.
> This isn't universal though as there are cases where it is 
> slower.

wat

Shouldn't unstable be faster, otherwise we might as well just 
alias unstable = stable!?


More information about the Digitalmars-d mailing list