Did you know?

This is a discussion on Did you know? within the A Brief History of Cprogramming.com forums, part of the Community Boards category; Did you know that malloc() is actually faster than the "new" keyword? I think it is something like .01%. Just ...

  1. #1
    l'Anziano DavidP's Avatar
    Join Date
    Aug 2001
    Location
    Plano, Texas, United States
    Posts
    2,738

    Did you know?

    Did you know that malloc() is actually faster than the "new" keyword? I think it is something like .01%.

    Just an interesting thought.
    My Website

    "Circular logic is good because it is."

  2. #2
    Code Warrior
    Join Date
    Nov 2001
    Posts
    669
    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)

  3. #3
    Registered User
    Join Date
    Dec 2001
    Posts
    88
    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!

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21