You pick the winners! Login and vote now.
By bloid
via codegem.org
Published: Oct 06 2008 / 16:55
It seems that there is some misunderstanding about my previous post. The purpose was never for measuring C++ performance but for better understanding of how polymorphism is implemented in C++, and make people aware that those extra power is not come for free. This is why I choose trivial cases and disable compiler optimization. Trivial cases for make the time penalty observable, disabling compiler optimization for ensure that assembly code is generated from C++ source code directly so it could be easier for analysis. These time penalty actually may not be a problem in real life as a considerable part of the overhead will be eliminated by compiler optimization.



Add your comment