|Subject:||Why is write of ofstream so slow?|
|Date:||Wed, 4 Jul 2007|
I am writing the pixels of an image to a file. I have
const char *charpixels = ...
For a large image (count is about 30 million), the write takes about 4
seconds. Why is it so slow? Can it be made faster?