summaryrefslogtreecommitdiffstats
path: root/src/corelib/global/qtypeinfo.h
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2014-02-02 16:23:00 -0800
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-02-12 20:12:17 +0100
commitab1ec81f5875c7a78eb0543b562b50058ec251fa (patch)
tree6ae14e546508eb064731794ecfedc0ec6ede7815 /src/corelib/global/qtypeinfo.h
parentaf8c35bda4fd245061e3a43df32f705903e855dd (diff)
Optimize qt_memfill32 a little
Benchmarking shows it took up to 3.5% of Qt Creator's initialization cost. Optimize by modifying only one variable per loop: instead of updating n and dst128, we only update one variable at a time. Removing the Duff's Device also improves the code, since the compiler won't try to update dst128 four times per loop, only once. The moving of the epilogue close to the prologue was just to make the code a little cleaner. Change-Id: I5b74e27d520ca821f380aef0533c244805f003b7 Reviewed-by: Gunnar Sletta <gunnar.sletta@jollamobile.com>
Diffstat (limited to 'src/corelib/global/qtypeinfo.h')
0 files changed, 0 insertions, 0 deletions