Performant method for reading huge text files

Chris Williams yoreanon-chrisw at yahoo.co.jp
Tue Feb 4 17:47:06 PST 2014


> Parsing should be faster than I/O. Set up two buffers and have 
> one thread reading into buffer A while you parse buffer B with 
> a second thread.

...and then flip buffers whenever the slower of the two has 
completed.


More information about the Digitalmars-d-learn mailing list