4 ms·
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
by TheCoelacanth 14y ago
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#.