3 ms·
Apache has a nice system where all allocations come out of pools. http://apr.apache.org/docs/apr/2.0/group__apr__pools.html http://apr.apache.org/docs/apr/2.0/g
by jbert 13y ago
Apache has a nice system where all allocations come out of pools. http://apr.apache.org/docs/apr/2.0/group__apr__pools.html http://apr.apache.org/docs/apr/2.0/group__apr__pools.html
You can then create a new pool to handle a single http request, then discard the whole pool with one free when the request has finished.
- csmuk 13y agoSpot on. This and APR make stuff a lot simpler. Have used pool allocation on a number of projects.