I'm using tbb malloc in a project and I wondered what the difference was between using the tbb malloc proxy library and using a header file to redefine the standard memory allocation functions. Something like:
void* operator new(size_t sz)
void *res = scalable_malloc(sz);
if (res == NULL)
void operator delete(void* ptr) throw()
What are the advantages/drawbacks to both approaches ? Is one superior to the other ?