-4
votes
1answer
159 views

For loop optimisation [closed]

Here are some variations of for loops: 1) Standard: for (int i=0; i<limit; i++) 2) Using preincrement for (int i=0; i<limit; ++i) 3) Inverting the loop for (int i=limit-1; i>=0; i--) ...
2
votes
2answers
720 views

Was C++ designed for speed, and is it better to not use high level features when teaming with inexperienced programmers?

I have read some optimisation guide for C++, and it seems it requires more knowledge to have a fast C++ code, than using C++ without the high level features of C++ (classes, templates, inheritance, ...