On Friday, 22 January 2016 at 21:41:46 UTC, data pulverizer wrote:
On Friday, 22 January 2016 at 02:16:14 UTC, H. S. Teoh wrote:
[...]

Hi H. S. Teoh,  I have used you fastcsv on my file:

import std.file;
import fastcsv;
import std.stdio;
import std.datetime;

void main(){
  StopWatch sw;
  sw.start();
  auto input = cast(string) read("Acquisition_2009Q2.txt");
  auto mydata = fastcsv.csvToArray!('|')(input);
  sw.stop();
  double time = sw.peek().msecs;
  writeln("Time (s): ", time/1000);
}

$ dmd file_read_5.d fastcsv.d
$ ./file_read_5
Time (s): 0.679

Fastest so far, very nice.

I guess the next step is allowing Tuple rows with mixed types.

Reply via email to