there are tons of small events malloc/ freehigh infant mortality in my application . Normally I would write my own memory pool, but when tcmallocI see usage performance , I am tempted to use the malloc replacement. Are there implementations with similar performance to implement a pool of raw memory packets?
For C ++, I have another application that performs a C ++ new/ dance delete. Suppose children have the same high infant mortality rate. Two questions:
1) How to implement a memory pool that affects operations newand delete?
2) Is there a transparent way, similar to the functions of the glibc malloc dynamic library, to replace the memory allocation block new/ deletefor all classes?
source
share