Re: TLV to memPools

From: Adrian Chadd <adrian@dont-contact.us>
Date: Tue, 9 Oct 2001 00:37:41 -0600

On Mon, Oct 08, 2001, Andres Kroonmaa wrote:

> > note that I'm using a static struct rather than a pointer - there's
> > no point in pooling the mempool_t entries, as they're minimal and
> > this would cut down on allocator overheads.
>
> the problem is that we too often need to pass buf as single pointer
> to some API together with freefunc. so we'd need to pass *mempool
> and change alot of how its referenced.

Maybe. I don't like "hiding" the data in the way its done with cbdata.
Perhaps if things are modified one system at a time, and a void *is used
for the callbacks the changes won't need to be as sweeping?

Adrian
Received on Tue Oct 09 2001 - 00:37:42 MDT

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