M
madmanahong
I Found new & delete of the CRT was very slow.
so I overloaded the global new & delete operator.
but if the CRT & STL also use my new & delete operator.
It's bad because then my overloaded memory system didn't initialized.
I also find the DLMalloc, but use 20 threads to call DLMalloc in a
time, its wrong.
DLMalloc called abort.( I Opened the USE_LOCKS macro ).
sorry, i didn't make the operator new & delete in class-level.
because the project have a lot of classes,
I have no time to inherit from class-level operator one by one.
I want to use a fast memory operator than CRT default.
I cound initialize my overloaded memory system on first call, use
singleton model.
but i don't know if i do this was right or wrong.
who give me some experience.
Hope your help.
at sea....
so I overloaded the global new & delete operator.
but if the CRT & STL also use my new & delete operator.
It's bad because then my overloaded memory system didn't initialized.
I also find the DLMalloc, but use 20 threads to call DLMalloc in a
time, its wrong.
DLMalloc called abort.( I Opened the USE_LOCKS macro ).
sorry, i didn't make the operator new & delete in class-level.
because the project have a lot of classes,
I have no time to inherit from class-level operator one by one.
I want to use a fast memory operator than CRT default.
I cound initialize my overloaded memory system on first call, use
singleton model.
but i don't know if i do this was right or wrong.
who give me some experience.
Hope your help.
at sea....