diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2016-01-25 13:30:25 +0100 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2016-02-19 18:11:55 +0000 |
commit | 342acf66fe640c72e1a7c8837ba5cdefae06f9c9 (patch) | |
tree | c42718bd8e29d82661f7c6053b259c2dd5dbf2ec /dist/changes-4.6.4 | |
parent | bcc965ef4bae2565456522b19687a3e726da8315 (diff) |
uic: optimize string handling in WriteInitialization::acceptWidget()
Instead of building QStringLists out of statically-known
US-ASCII strings, use C arrays of QLatin1String instead.
QLatin1String is constexpr, so these tables, while causing
relocations, do not require runtime initialization.
Using QStringBuilder, these QLatin1Strings are almost a
drop-in replacement for the QStrings used before.
Effects on optimized GCC 5.3 Linux AMD64 builds:
$ size bin/uic-*
text data bss dec hex filename
567104 31776 56 598936 92398 bin/uic-00-before
565829 31944 24 597797 91f25 bin/uic-01-after
Change-Id: I469c62b0e8966731d7ac2fa092f4b4cd8ddb79f1
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Diffstat (limited to 'dist/changes-4.6.4')
0 files changed, 0 insertions, 0 deletions