diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2014-03-27 14:50:20 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-03-31 22:54:14 +0200 |
commit | adf0db5243c44a66639fc8f5462eb2d38e85bd9f (patch) | |
tree | df4779e5ca73ee2e9e3066e78f4f8dc0fd094717 /src/corelib/arch | |
parent | 47d2d19cf6bceb0421f5dbff3686ec093daeba1c (diff) |
QStringList::join: micro-optimization
Don't call that->size() if we have already saved its value in a local temp.
Surprisingly, this saves 56B in text size even on a -O3 GCC build, proving
that the compiler does _not_ have enough context to const-fold the repeated
size() evaluation.
Change-Id: I2c41ddc4376f4e1534fc2f0d4789e42b984d3ba6
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Diffstat (limited to 'src/corelib/arch')
0 files changed, 0 insertions, 0 deletions