Sander Striker wrote:

>On Wed, 2004-01-28 at 22:03, Stas Bekman wrote:
>  
>
>>I couldn't find apr_realloc() in the apr API. Is that on purpose or just 
>>wasn't needed so far?
>>
>>I suppose realloc is hard in the pool architecture, since if you have 
>>allocated something after the alloc, you have to move the already allocated 
>>memory.
>>    
>>
>
>apr_prealloc aswell as apr_pfree are doable.  I can take a look at
>revisiting my earlier patches if there is enough interest.
>  
>
apr_prealloc would be nice, I know at least one place in SVN where we
could use it, and probably a few places in APR, too. apr_pfree could be
useful as a minor optimization instead of creating and destroying a subpool.

-- 
Brane Äibej   <[EMAIL PROTECTED]>   http://www.xbc.nu/brane/

Reply via email to