httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Querna <c...@force-elite.com>
Subject Re: svn commit: r109866 - /httpd/httpd/trunk/modules/loggers/mod_log_config.c
Date Sun, 05 Dec 2004 20:58:44 GMT
Joe Orton wrote:
> 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

Mime
View raw message