E
Ed
Hi, guys,
When I trying to control the memory allocation to a module, which way
is best for me, Class-Based or Global Overridden?
I plan to make use of TBB allocator to manage the memory allocation.
Two ways.
1 Make all the resources inherited from new/delete operator function.
2 Create a global new/delete operator function under module namespace.
I prefer the second way, since the first way can not cover the
primitive type, like int array, float array, string, etc.
What do you think?
Thanks.
When I trying to control the memory allocation to a module, which way
is best for me, Class-Based or Global Overridden?
I plan to make use of TBB allocator to manage the memory allocation.
Two ways.
1 Make all the resources inherited from new/delete operator function.
2 Create a global new/delete operator function under module namespace.
I prefer the second way, since the first way can not cover the
primitive type, like int array, float array, string, etc.
What do you think?
Thanks.