On Sun, Dec 05, 2004 at 07:05:23AM -0000, Paul Querna wrote:
Author: pquerna Date: Sat Dec 4 23:05:23 2004 New Revision: 109866
URL: http://svn.apache.org/viewcvs?view=rev&rev=109866 Log: mod_log_config.c: Use iovecs to write the log line to eliminate a memcpy
IIRC, writev'ing several small blocks to a file is actually generally more expensive than doing a memcpy in userspace and calling write. Did you benchmark this to be faster/better/...?
I did a local mini-benchmark of write w/ memcpy vs writev... and they came out to almost exactly the same on average with small sets of data.
-Paul
