Profiling

From OTBWiki
Revision as of 00:26, 18 November 2010 by Ulofyvy (Talk | contribs)

Jump to: navigation, search

This page compiles some profiling conclusions and tips:

>===Method GetSize()===

  • Avoid:

for (int i=0;i<v.GetSize();++i) {}

  • Prefer:

const unsigned int size = v.GetSize(); for (int i=0;i<size;++i) {}