3 ms·
I did something like the single-threaded naive approach from http://lemire.me/blog/2017/02/14/how-fast-can-you-count-lines/ http://lemire.me/blog/2017/02/14/how
by an0nym0us1 10y ago
I did something like the single-threaded naive approach from http://lemire.me/blog/2017/02/14/how-fast-can-you-count-lines/ http://lemire.me/blog/2017/02/14/how-fast-can-you-count-line... and outperformed wc -l slightly. But Lemire's vectorized/bit magic'd version is 16x as fast as the naive.