Speed kills

John Colvin via Digitalmars-d digitalmars-d at puremagic.com
Wed Mar 9 06:03:26 PST 2016


On Wednesday, 9 March 2016 at 13:26:45 UTC, Andrei Alexandrescu 
wrote:
> On 03/08/2016 09:14 AM, ixid wrote:
>> Since I posted this thread I've learned std.algorithm.sum is 4 
>> times
>> slower than a naive loop sum. Even if this is for reasons of 
>> accuracy
>> this is exactly what I am talking about- this is a hidden 
>> iceberg of
>> terrible performance that will reflect poorly on D. That's so 
>> slow the
>> function needs a health warning.
>
> Whoa. What's happening there? Do we have anyone on it? -- Andrei

Ilya has long term plans for this, but I have a short-term fix 
that will buy us a very large performance improvement here (if my 
old benchmarks were correct). Give me a few mins to prep the pull 
request :)


More information about the Digitalmars-d mailing list