C++ memory allocation mechanism performance comparison (tcmalloc vs. jemalloc)
If I remember correctly, the main difference was with multi-threaded projects. Both libraries try to de-contention memory acquire by having threads pick the memory from different caches, but they have different strategies: jemalloc (used by Facebook) maintains a cache per thread tcmalloc (from Google) maintains a pool of caches, and threads develop a “natural” affinity … Read more