+ 6
Guys,What are the best tips to write efficient code in c++?
2 Respostas
+ 7
utilize loops, functions, classes, c++ library, etc
+ 2
Pass by reference for structs or objects, inline small functions that are called a lot, don't declare a local variable until you are actually going to use it so you can save registers or stack instructions, keep parameters you pass to a function minimal, use the appropriate calling convention