[tech] Mac stuff

Adrian Chadd adrian at ucc.gu.uwa.edu.au
Wed Apr 17 23:43:54 WST 2002


On Thu, Apr 18, 2002, David Luyer wrote:

> My current approach is to attempt to avoid data that has to be
> free'd - which isn't going to always be possible, but in many
> cases it is possible and again a speedup to avoid allocating and
> deallocating memory.

oh, I do this too.

the system malloc is just useless for apps like squid that alloc/free
lots and lots of fixed-sized entries.

The block allocator thats just gone into squid should make this a little
nicer (well, a lot nicer - the initial reports are like 20% less cpu
usage, about 10-20% memory usage since everything is packed into arrays
now) but you should really limit the number of allocator calls you're
making in any case.



Adrian



More information about the tech mailing list