Read text file fast, how?

Jesse Phillips via Digitalmars-d digitalmars-d at puremagic.com
Mon Jul 27 13:21:26 PDT 2015


On Monday, 27 July 2015 at 08:52:07 UTC, Martin Nowak wrote:
> On 07/26/2015 09:04 PM, Jesse Phillips wrote:
>> 
>> It would be better to compare with LDC or GDC to match the 
>> same backend as C++. That is a little harder since they don't 
>> have 2.068 yet.
>
> Reading a file is IO and memcpy limited, has nothing to do with 
> compiler optimizations. Clearly we must be doing some 
> unnecessary copying or allocating.

Unless the only code being exercised is only a system call to 
read and a system call to memcpy, then I'll stick with the notion 
that the backends may have something to do with it or if it is 
just tested with the same backend.


More information about the Digitalmars-d mailing list