icefox tests issues

Matt Rogers mattr at kde.org
Thu Oct 21 18:21:47 CEST 2004


On Wed, Oct 20, 2004 at 03:52:25PM -0400, Simon Perreault wrote:
> 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.
> 

Thanks for confirming for me. :)

Matt



More information about the Kde-optimize mailing list