문제

I want to know what open source projects are used things like arena, allocators, overloading new and etc. This refers to the C + + language.

도움이 되었습니까?

해결책

See google perf tools and jemalloc. The last one is used in freebsd as default malloc implementation. So, every project that use any of this two use arenas, cause both use them internally. new operator in c++ is usually implemented with libc's malloc function. Also, see nginx http server sources, it allocates memory pool for the session before the connection is created (but it's written in pure c). Apache has an apr pools library.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top