Re:Ask HN: What are the performance gains using native C++ i...
by TheCoelacanth on Tuesday February 26, 2013 @09:00AM
(#5285523)
Other people have discussed the speed, but one aspect of performance that people often ignore is memory usage. In C# (or at least the most common implementation), there is a per object overhead of at least 8 bytes on 32-bit platforms and 16 bytes on 64-bit platforms. C++ implementations typically have no overhead for objects without virtual functions and 4 or 8 bytes of overhead for objects with virtual functions. This means that a program written in C++ could potentially use a much lower amount of memory than one written in C#.
[ Parent
| on HN ]
There are no comments on this comment yet.