apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Stein <gst...@lyra.org>
Subject Re: apr_dso_handle_close ?
Date Tue, 17 Apr 2001 21:31:55 GMT
On Tue, Apr 17, 2001 at 07:32:02AM -0700, rbb@covalent.net wrote:
>...
> b) With the model above, we are allocating everytime we want to fill out
> an apr_dso_handle_t.  That is a performance waste.  We are allocating just
> to immediately lose that memory, and re-allocate it.  In fact, not only is
> this a performance waste, it is a resource waste.  You allocated 1
> sub-pool, and 3 apr_dso_handle_t's.  My model uses one apr_dso_handle_t.
> If the pool doesn't die immediately, then we have a bunch of wasted
> memory.

Wasted memory? 16 bytes each.

See my other note. Talking about "wasted memory" is a non-starter.

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/

Mime
View raw message