howto count lines - fast

Nitram via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue May 30 13:02:38 PDT 2017


After reading 
https://dlang.org/blog/2017/05/24/faster-command-line-tools-in-d/ 
, i was wondering how fast one can do a simple "wc -l" in D.

So i made a couple short implementations and found myself 
confronted with slow results compared to "/usr/bin/wc -l".

How would a implementation look like in D, which is fast?



More information about the Digitalmars-d-learn mailing list