Thread: Did you know?

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

    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
    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
    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