zeroing buffers

2007-12-12 Thread Gonzalo Arana
Hi, I've been profiling squid2.6S16, and reached a similar conclusion to Adrian's: zeroing structures use about 2% of CPU usage, when squid as a hole is using about 30%. I did developed an optimization a little different than what Adrian did: instead of leaving large buffers untouched, I added an

Re: Squid-2.6 + zeroing buffers

2006-09-24 Thread Adrian Chadd
On Sun, Sep 24, 2006, Guido Serassio wrote: > Just a portability question: > bzero() is deprecated and is not available on all platforms, memset() > should be used instead. I've fixed it in my local checkout. Could you give it a whirl (with the change to memset() of course) and let me know if an

Re: Squid-2.6 + zeroing buffers

2006-09-24 Thread Guido Serassio
Hi Adrian, At 09.20 24/09/2006, Adrian Chadd wrote: Hiya, Something thats been on the radar for a while but noone's actually done is to modify the memory allocator to return non-zero'ed buffers where appropriate. I've written a patch which adds a couple of calls to the memory allocator and m

Squid-2.6 + zeroing buffers

2006-09-24 Thread Adrian Chadd
Hiya, Something thats been on the radar for a while but noone's actually done is to modify the memory allocator to return non-zero'ed buffers where appropriate. I've written a patch which adds a couple of calls to the memory allocator and mempool allocator in squid-2.6 which doesn't zero the stri