Did you know that malloc() is actually faster than the "new" keyword? I think it is something like .01%.
Just an interesting thought.
Printable View
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?
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!!