apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Branko ─îibej <br...@xbc.nu>
Subject Re: apr_realloc?
Date Thu, 29 Jan 2004 23:50:31 GMT
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 
>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   <brane@xbc.nu>   http://www.xbc.nu/brane/

View raw message