apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mladen Turk <mt...@apache.org>
Subject Re: [Fwd: Re: Making pool 3 times faster on WIN32]
Date Wed, 01 Sep 2004 18:32:03 GMT
Bill Stoddard wrote:

>> Not sure what's the total httpd's time spent for palloc,
>> but I suppose it's quite a large value.
> I saw no significant difference serving a 500 byte file:
> 
> Keep in mind that the whole idea behind APR pools is to minimize calls 
> to the native memory allocators (malloc/heap).  If your benchmark 
> recycled the pool each time you did an allocation, the 3x difference is 
> not suprising, but that is a somewhat artifical benchmark imho.
>

Yes, it seems that the number of times the allocator is actually calling
malloc/free is low compared to the palloc calls.

Sorry for the noise :)

Regards,
MT.


Mime
View raw message