apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Pane <bp...@pacbell.net>
Subject [PATCH] more pool optimizations for worker MPM
Date Sat, 01 Dec 2001 10:06:38 GMT
I enhanced my worker MPM and apr_pool_t optimization
patch by adding "recycling" of transaction pools so that
we can avoid the mutex overhead associated with destroying

With this patch, the fdqueue pop function allows a worker
thread to return its previous ptrans pool to the listener
thread.  The fdqueue object caches the recycled pools internally
and returns them to the listener, one at a time, when the
listener pushes the next connection onto the queue.

The motivation for exchanging recycled pools as a side-effect
of the fdqueue push and pop operations is that we get to take
advantage of the mutex locking that's done there already, so
no extra locking is needed.


View raw message