On Fri, 14 Jun 2013 13:58:33 -0400, Walter Bright
<[email protected]> wrote:
On 6/14/2013 8:22 AM, Steven Schveighoffer wrote:
And quite honestly, if disk performance were dependent on user-land C
buffering
schemes, C runtime writers would pay more attention to the C buffering
scheme
and make sure it performs well!
Actually, this has been a common oversight of C runtime writers. My
compiler was able to consistently beat others in I/O back in the 80's
because I used a better buffering scheme in the runtime.
The 80's are a long time ago. Plus, your posting of the source code
pretty much refutes that your buffering scheme takes into account how
important this should be. It ignores alignment of writes if you add an
fflush in between writes.
It's not the only anecdote I have about that, either.
That's good, because the floppy DOS days are pretty much over :)
-Steve