comm optimisation

From: Adrian Chadd <adrian@dont-contact.us>
Date: Fri, 11 Aug 2006 21:01:32 +0800

Hiya,

This is a simple hack to attempt to remove the mempoolalloc/free
done for each comm_write(). This is against squid-2.6.

http://www.creative.net.au/diffs/20060811-comm-1.diff

Its dirty and meant as a proof of concept.
I noticed that ~8% of the total mempool allocations in some of my
profiling was just allocating and freeing the single instance
of CommWriteStateData that fd_table[fd].rwstate would point to.

I'd like some comments please.

Adrian
Received on Fri Aug 11 2006 - 07:01:07 MDT

This archive was generated by hypermail pre-2.1.9 : Fri Sep 01 2006 - 12:00:03 MDT