Re: getting started with std.csv

2015-04-07 Thread gjansen via Digitalmars-d-learn
Many thanks for the feedback yazd! I've tested the approach with a large csv file and it works fine. Unfortunately csvReader seems very convenient but it is no speed daemon. To my dismay it was much slower (about 4x) than a simple approach I am using in Python, which is essentially equivalent

Re: getting started with std.csv

2015-04-07 Thread gjansen via Digitalmars-d-learn
dmd -O (2.066.1) and gdc -O3 (4.9.2) But... as I tried to convey, I was comparing apples to oranges. I have now rewritten the D test simply using split(',') instead of csvReader, to be more similar to the python test, and it runs about 2x faster in D with dmd and about 4x faster with gdc

getting started with std.csv

2015-04-06 Thread gjansen via Digitalmars-d-learn
Hi. I'm a D newbie(!) coming from a Fortran/C/Python background. I'm struggling with the many new concepts needed in order to make any sense out of the documentation or traceback messages (ranges/templates/...). For example, the std.csv documentation is great but all the examples read from a