--- Begin Message --- Mladen Turk wrote:Hi,
If my tests are correct the following patch makes the pool allocation tree times faster on WIN32 (at least for 1 million 32 bytes allocations).
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:
ab -n 10000 -c 10 127.0.0.1/file500.html
w/o patch (3 runs): 853/849/832 w/patch (3 runs) : 829/826/828
ab -k -n 10000 -c 10 127.0.0.1/file500.html
w/o patch (3 runs): 4026/3950/4010 w/patch (3 runs) : 4143/4092/3885
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.
Bill
--- End Message ---
Failed to cc dev@
- [Fwd: Re: Making pool 3 times faster on WIN32] Bill Stoddard
- Re: [Fwd: Re: Making pool 3 times faster on WIN3... Mladen Turk
- Re: [Fwd: Re: Making pool 3 times faster on ... William A. Rowe, Jr.
- Re: [Fwd: Re: Making pool 3 times faster... Bill Stoddard
- Re: [Fwd: Re: Making pool 3 times faster... Mladen Turk
- Re: [Fwd: Re: Making pool 3 times fa... Sander Striker