Did you know that malloc() is actually faster than the "new" keyword? I think it is something like .01%.
Just an interesting thought.
Did you know that malloc() is actually faster than the "new" keyword? I think it is something like .01%.
Just an interesting thought.
Where did you get this information?
Current projects:
1) User Interface Development Kit (C++)
2) HTML SDK (C++)
3) Classes (C++)
4) INI Editor (Delphi)
sounds logical!
because malloc just allocates memory, new also calls the constructor _and_ it watches for exceptions to throw
but hey - C++ is slower if you compare it with pure C, but C++ is much saver!!
Hope you don't mind my bad english, I'm Austrian!