apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ryan Bloom <...@covalent.net>
Subject Re: SMS parm to bucket_foo_create()
Date Sun, 26 Aug 2001 00:32:58 GMT
On Saturday 25 August 2001 17:09, Cliff Woolley wrote:
> On Sat, 25 Aug 2001, Justin Erenkrantz wrote:
> > > Should the new apr_sms_t* parameter to the foo_create() functions go at
> > > the beginning of the argument list or at the end?
> >
> > I would guess at the end since it is conceptually like a pool.  -- justin
>
> Good, 'cause that's the one I picked.  =-)

Woah!  Those patches were large, and I don't think I agree with them at all.

I thoroughly dislike have multiple memory management routines in the same
server.  Plus, now we sometimes have both pools and sms's in the same structure.
How are we synch'ing those two?

Why can't we just create a free list for buckets?  That way, we take the hit for
allocating buckets only when necessary, and at some point, we will reach a
steady state.  The free list, could be per thread, and I believe I could have it
coded tomorrow night.

Ryan

______________________________________________________________
Ryan Bloom                        	rbb@apache.org
Covalent Technologies			rbb@covalent.net
--------------------------------------------------------------

Mime
View raw message