Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Apache has a nice system where all allocations come out of pools. 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.



Spot on. This and APR make stuff a lot simpler. Have used pool allocation on a number of projects.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: