Should I use tcmalloc / jemalloc instead of memory pool?

In my project I am using memory pool (boost :: pool), but it is consuming too much memory (measured by 22G), so I want to use tcmalloc / jemalloc instead of memory pool, I consider the sides below:

1.performance
2.memory use

      

I think that if I use tcmalloc / jemalloc instead of pooling then the memory used will be less, but the performance problem will increase. How can I solve this? Thank!

+3


source to share





All Articles