3 ms·
A properly coded C++ app should run as fast as C; it can be faster...
by alexchamberlain 15y ago
A properly coded C++ app should run as fast as C; it can be faster...
- lmm 15y agoNot while C++ doesn't have restrict pointers
- alexchamberlain 15y agoYeah, all performance benefits of C come from a single under used feature. </sarcasm>
- padenot 15y agoWhile the standard does not specify a restrict keyword, it is practically available in quite a lot of compiler.
- timdot 15y agoWhilst C++ can be as fast, or faster, than C - it's usually not because it's "properly coded". Many of the abstractions that C++ provides are what hit performance and it's usually by avoiding these that you can match performance with C. http://unthought.net/c++/c_vs_c++.html http://unthought.net/c++/c_vs_c++.html