in reply to Re: Quickest way to write multiple files
in thread Quickest way to write multiple files

As far as I can tell, his snippet was only opening and closing each file once, not once per line, and he appears to be writing the entire contents in one hit.

With only 12 lines per small file, unless the lines are quite long then accumulating the data and writing it in one hit is unlikely to benefit as it's quite possible that stdio would have buffered more than the entire size of each file anyway.


Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"Think for yourself!" - Abigail
  • Comment on Re^2: Quickest way to write multiple files