Re: TLV to memPools

From: Adrian Chadd <adrian@dont-contact.us>
Date: Mon, 8 Oct 2001 08:59:47 -0600

On Mon, Oct 08, 2001, Andres Kroonmaa wrote:
>
> Does it make sense to convert TLV stuff to memPools?
> Specifically, TLV->value is currently xmalloced, but
> as its size is known at both alloc and free time, we
> can convert this to memAllocBuf/memFreeBuf.
>
> Immediate benefits are almost none, only just reduce
> number of xmallocs past memPools, and account this
> mem traffic to String Pools.

It makes sense to convert everything that uses xmalloc to use
mempools. The only things that may get away with it are the
allocator itself (heh) and the request parsing, and I
do believe that eventually the request parsing code should
be rewritten to use an stmem chained buffer.

adrian
Received on Mon Oct 08 2001 - 08:59:48 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:14:26 MST