Quote:
Originally Posted by
jim mcnamara
achenle - just becuase you saw somebody do something does not make it good practice.
Even in commerical software.
My company bought a package (C/shell/perl) that had non-terminating loops in it.
Does that mean it was good practice - or good software? We sent it back.
There's a very good reason to read a large amount of data with just one system call: in a contended file system, doing so allows for better scheduling of IO to data blocks that are more likely to be contiguous on disk, thus reducing overhead lost to disk head seeks. And I haven't SEEN it done, I've DONE it. And improved IO throughput on said system by about 20 or 30 percent.
Fortunately for the customer, the OS wasn't Linux, which has punted the ability to do large read and writes.
I guess 2 gig is enough for everybody, right?
Your company buying buggy software is about as relevant as the color of your car.