Speed kills

John Colvin via Digitalmars-d digitalmars-d at puremagic.com
Wed Mar 9 13:46:43 PST 2016


On Wednesday, 9 March 2016 at 21:01:13 UTC, H. S. Teoh wrote:
> On Wed, Mar 09, 2016 at 08:30:10PM +0000, Jon D via 
> Digitalmars-d wrote:
>> On Tuesday, 8 March 2016 at 14:14:25 UTC, ixid wrote:
>> >[...]
>
> In the case of std.algorithm.sum, the focus is on accuracy 
> rather than performance.  It does some extra work to ensure 
> maximum accuracy in the result, so it shouldn't be expected to 
> have top performance.  Granted, though, the docs could be 
> clearer about this accuracy vs. performance tradeoff.  Please 
> file a bug on this (or better yet, submit a PR for it).
>
> In any case, 4 times slower sounds a bit excessive... it would 
> be good to investigate why this is happening and fix it.

I think you'd be good at reviewing this: 
https://github.com/D-Programming-Language/phobos/pull/4069



More information about the Digitalmars-d mailing list