httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bill Stoddard <b...@wstoddard.com>
Subject Re: mod_cache wishlist
Date Tue, 23 Aug 2005 15:19:34 GMT
Brian Akins wrote:
> Bill Stoddard wrote:
> 
>> I've not looked at your code so I can't make specific recommendations. 
>> Just remember, code allocated with any of the apr_pool functions is 
>> freed only when that pool is reclaimed (end of a request for a request 
>> pool, shutdown of the server for pconf, etc.). mod_mem_cache uses the 
>> functions 'cache_hash', a 'de-poolized' apr_hash, for this exact reason.
> 
> 
> 
> Or, you could use lots of sub-pools...

I didn't use subpools in mod_mem_cache to minimize the storage overhead, but you point is
well taken. There 
other ways to fix the problem and subpools may be a better tradeoff.

Bill


Mime
View raw message