Making byLine faster: we should be able to delegate this

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Mon Mar 23 07:59:48 PDT 2015


On 3/23/15 7:52 AM, Steven Schveighoffer wrote:
> On 3/22/15 3:03 AM, Andrei Alexandrescu wrote:
>
>> * assumeSafeAppend() was unnecessarily used once per line read. Its
>> removal led to a whopping 35% on top of everything else. I'm not sure
>> what it does, but boy it does takes its sweet time. Maybe someone should
>> look into it.
>
> That's not expected. assumeSafeAppend should be pretty quick, and
> DEFINITELY should not be a significant percentage of reading lines. I
> will look into it.

Thanks!

> Just to verify, your test application was a simple byline loop?

Yes, the code was that in 
http://stackoverflow.com/questions/28922323/improving-line-wise-i-o-operations-in-d/29153508#29153508


Andrei



More information about the Digitalmars-d mailing list