Re: icefox tests issues

Simon Perreault <[email protected]> Wed, 20 Oct 2004 15:52:25 -0400
Newsgroups gmane.comp.kde.devel.optimize
Message-ID <[email protected]>
Matt Rogers wrote:
> AFAIK, using it++ in Qt/KDE is worse because a temporary object is
> created, but i could be _completely_ wrong. So this _might_ (very slim
> possibility) cause a speedup, but caching the value of end() might have
> more effect.

Caching the value of end() prevents the creation of an iterator, as does 
using ++it instead of it++. The speedup should be the same.

The advantage of using preincrementation should not be quickly 
dismissed, as it is very real.

-- 
Simon Perreault <[email protected]> -- http://nomis80.org