Optimizing Java using D

Brad Anderson via Digitalmars-d digitalmars-d at puremagic.com
Fri Jun 20 18:00:01 PDT 2014


On Saturday, 21 June 2014 at 00:47:23 UTC, bearophile wrote:
> Xinok:
>
>> I get the feeling that, because he is utilizing UFCS, that it 
>> is actually calling the built-in array sort and not 
>> std.algorithm.sort. The built-in sort is 3-4x slower, so that 
>> would explain why his naive quicksort implementation was 
>> faster.
>
> Please deprecate/kill the built-in sort before dmd 2.066 is out.
>
> Bye,
> bearophile

Here's the issue for those curious about the state of this:

https://issues.dlang.org/show_bug.cgi?id=10318

It seems like the deprecation was held up on Xinok being
uncertain on issues of purity. His concern with sorting arrays of
char isn't an problem as it shouldn't be done carelessly (as you
wrote in the issue).

I too am not sure how purity and delegates is supposed to work
but if you and others say it's fine to move forward we should
definitely get it deprecated. The built-in sort has haunted us
for too long (and is giving D a bad rap).


More information about the Digitalmars-d mailing list