]> granicus.if.org Git - libevent/commit
Increase MIN_BUFFER_SIZE to 512 (1024 on 64-bit)
authorNick Mathewson <nickm@torproject.org>
Fri, 26 Mar 2010 18:30:14 +0000 (14:30 -0400)
committerNick Mathewson <nickm@torproject.org>
Fri, 26 Mar 2010 18:30:14 +0000 (14:30 -0400)
commit2014ae4ac630d727f23ca91dad5d0ebf56b694de
treefe2e626617d1025586677bf561b2d94f22f82de1
parent6f20492fa27f08524af25914c02bc72d357b4197
Increase MIN_BUFFER_SIZE to 512 (1024 on 64-bit)

This constant decides the smallest (and typical) size of each evbuffer
chain.  Since this number includes sizeof(evbuffer_chain) overhead,
the old value (256) was just too low: on 64-bit platforms, it would
spend nearly 20% of the allocations on overhead.  The new values mean
that we'll be spending closer to 5% of evbuffer allocations on overhead.

It would be nice to get this number even lower if we can.
evbuffer-internal.h