summaryrefslogtreecommitdiffstats
path: root/src/printsupport
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2017-04-15 14:25:54 +0200
committerMarc Mutz <marc.mutz@kdab.com>2017-05-30 10:38:17 +0000
commitdc72ff7b978a935d95bced05d8b2c8eee87d042d (patch)
tree73be47300bdadd077f00deb9e5a36df2a9654984 /src/printsupport
parente136565505bd5f2e787dace5b6107e211d55854e (diff)
QXmlStream: don't create QStrings just to look up entities in a hash
Move the entity's name into the Entity struct and use a QStringView into Entity::name as the hash key, instead of a QString. This avoids having to create a QString from QStringRefs every time an entity is looked up. Only costs 280B in text size on optimized GCC 6.1 Linux AMD64 builds. Change-Id: I8dbd04c90c1ff684b794685025204abc89f68a84 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src/printsupport')
0 files changed, 0 insertions, 0 deletions