Speed of csvReader
Saurabh Das via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Thu Jan 21 09:17:52 PST 2016
On Thursday, 21 January 2016 at 17:10:39 UTC, data pulverizer
wrote:
> On Thursday, 21 January 2016 at 16:01:33 UTC, wobbles wrote:
>> Interesting that reading a file is so slow.
>>
>> Your timings from R, is that including reading the file also?
>
> Yes, its just insane isn't it?
It is insane. Earlier in the thread we were tackling the wrong
problem clearly. Hence the adage, "measure first" :-/.
As suggested by Edwin van Leeuwen, can you give us a timing of:
auto records = File("Acquisition_2009Q2.txt", "r").byLine.map!(a
=> a.split("|").array).array;
Thanks,
Saurabh
More information about the Digitalmars-d-learn
mailing list