Array!T and find are slow

Kapps via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed May 14 14:20:05 PDT 2014


On Wednesday, 14 May 2014 at 17:20:37 UTC, David Nadlinger wrote:
> On Wednesday, 14 May 2014 at 15:42:13 UTC, Damian Day wrote:
>> On Wednesday, 14 May 2014 at 14:54:57 UTC, David Nadlinger 
>> wrote:
>>
>>> Could you post a short benchmark snippet explicitly showing 
>>> the problem?
>>
>> Benchmark found here:
>> http://dpaste.dzfl.pl/0058fc8341830
>
> Unfortunately, I don't have the time to look at the details 
> right now, but 
> https://github.com/D-Programming-Language/phobos/pull/1713 
> might have improved the situation somewhat.
>
> David

That pull shows that the previous behaviour was to use enforce?
Isn't this very expensive, particularly considering that enforce
uses lazy non-scope arguments?


More information about the Digitalmars-d-learn mailing list