I am working on a large application, where I suspect serialization due to the many allocation/deallocation calls. I would like to give the TBB allocation routines a try, but replacing all of the calls is not an option because the source code is way too big.
Other memory libararies like horde provide the possibility to replace the standard routines at runtime. This is realized by setting the PRELOAD environment variable to the library. All that is needed from the library is to provide the memory routines with the same name and interface. It would be nice if TBB had the same functionality.
We already tried to write a wrapper, but the overhead was to big. The major obstacle is to avoid the recursive call of malloc. (scalable_malloc obviously calls malloc).