bearophile Wrote:

> I think it minimizes heap allocations, the performance is tuned for a line 
> length found to be the "average one" for normal files. So I presume if your 
> text file has very short lines (like 5 chars each) or very long ones (like 
> 1000 chars each) it becomes less efficient.
> 
> So it's probably a matter of good usage of the C I/O functions and probably a 
> more efficient management by the GC.
> 
Don't you minimize heap allocation etc by reading whole file in one io call?

Reply via email to