3 ms·
I think that's probably mostly accurate. That said, I do use templated code in my inner loops even. After all, the benefit of generics is that you do the work
by banachtarski 11y ago
I think that's probably mostly accurate.
That said, I do use templated code in my inner loops even. After all, the benefit of generics is that you do the work at compile time instead of runtime (no casting, data marshalling is tight, etc).
Even with code that needed to be significantly templatized (as is the case with many core libraries), I have to give C++ a clear edge as far as runtime debuggability and performance is concerned.