On Mon, Dec 14, 2009 at 10:26 AM, Justin Erenkrantz <[email protected]> wrote: > Just to note - in Amsterdam earlier this year, the APR/httpd folks > ripped out pools and replaced it with a straight malloc/free > implementation and the performance across the board was horrific even > with the "best" malloc replacement libraries. So, that code was > reverted...see: > > http://mail-archives.apache.org/mod_mbox/apr-dev/200903.mbox/%[email protected]%3e >
non-linux libc's: http://mail-archives.apache.org/mod_mbox/apr-dev/200903.mbox/%[email protected]%3e using tcmalloc: http://mail-archives.apache.org/mod_mbox/apr-dev/200903.mbox/%[email protected]%3e The only way we could get it to approach or beat the existing APR Pools was by using tcmalloc, which poses several problems for APR. In addition, the variance of performance across platforms showed pretty quickly that most libc's malloc is still 'pretty slow', although things like FreeBSD's jemalloc are making the world better :) The attempt to change back to native malloc/free was kicked off by Ben's report. We had it in trunk for more than 2 months, we tried optimizing it, but we just couldn't get it reliably into the same level of performance.

