icefox tests issues

Simon Perreault nomis80 at nomis80.org
Wed Oct 20 21:52:25 CEST 2004


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 <nomis80 at nomis80.org> -- http://nomis80.org


More information about the Kde-optimize mailing list