summaryrefslogtreecommitdiffstats
path: root/src/gui/image/qicon.cpp
diff options
context:
space:
mode:
authorAndreas Buhr <andreas.buhr@qt.io>2020-10-27 10:27:26 +0100
committerAndreas Buhr <andreas.buhr@qt.io>2020-11-08 15:53:36 +0100
commite6cba05b6623d96278ac042b50eaba1c0cd77ddb (patch)
treed5cceba0a839c4001b5a286e1be12a1d5d67d835 /src/gui/image/qicon.cpp
parent4c5c4c6d1ce0caa2a1fc12a1a239aceca8ed28e8 (diff)
QLocale: improve speed of 'applyIntegerFormatting()'
This patch reduced the runtime of "QString::number(12345678)" from 119ns to 84ns in one measurement. It removes one copy of a QString into a local lambda function, it adds a std::move on return, removing another QString instantiation and it removes the usage of StringBuilder on return, which created another QString. Task-number: QTBUG-87330 Change-Id: Ia37e314353c354ae04402cd482d0f7aeabbfc0cb Reviewed-by: Andrei Golubev <andrei.golubev@qt.io> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src/gui/image/qicon.cpp')
0 files changed, 0 insertions, 0 deletions