Profiling

From OTBWiki
Revision as of 10:03, 26 May 2010 by Manuel.grizonnet (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This page compiles some profiling conclusions and tips:

  • Method GetSize() is
    • Avoid:

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

    • Prefer:

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