Performant method for reading huge text files

bearophile bearophileHUGS at lycos.com
Mon Feb 3 15:50:53 PST 2014


Rene Zwanenburg:

> The problem is speed. I'm using LockingTextReader in std.stdio, 
> but it't not nearly fast enough. On my system it only reads 
> about 3 MB/s with one core spending all it's time in IO calls.

Are you reading the text by lines? In Bugzilla there is a 
byLineFast:
https://d.puremagic.com/issues/show_bug.cgi?id=11810

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list