Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualEddieV223

Posted 27 December 2012 - 03:27 PM

Continuous memory is also a big win for c++. When you make an instance of a class in c# it's really just a reference to the object on the heap. In c++ it exists on the stack unless you used new. This allows the computer to use the cache much more effectively. And with c++11 you can put these objects in say a vector and with move semantics efficiently have them moved around without problems or having to do a deep copy.

#1EddieV223

Posted 27 December 2012 - 03:25 PM

Continuous memory is also a big win for c++. When you make a class in c# it's really just a reference to the object on the heap. In c++ it exists on the stack unless you used new. This allows the computer to use the cache much more effectively. And with c++11 you can put these objects in say a vector and with move semantics efficiently have them moved around.

PARTNERS