diff options
author | Thiago Macieira <thiago.macieira@nokia.com> | 2010-01-07 09:23:03 (GMT) |
---|---|---|
committer | Jason McDonald <jason.mcdonald@nokia.com> | 2010-01-13 11:01:06 (GMT) |
commit | abd6f1d678757e963909e3202b24e61fb0e865ba (patch) | |
tree | f4268c8e8b73283a944ef9aa8903e758cdeb0b9b /translations/qt_es.ts | |
parent | 0568190167c6eccbf1ab199112089c16c616dc91 (diff) | |
download | Qt-abd6f1d678757e963909e3202b24e61fb0e865ba.zip Qt-abd6f1d678757e963909e3202b24e61fb0e865ba.tar.gz Qt-abd6f1d678757e963909e3202b24e61fb0e865ba.tar.bz2 |
Improve QUrl constructing performance by making empty URLs have d==0.
One major cost is that QUrl::d is never 0 (even for default
constructor). While this simplifies the code, it has a real
performance impact, since QUrlPrivate is quite expensive to create (14
QString/QByteArray members, plus others). In a simple test of the QML
flickr demo, 1 in 3 QUrlPrivate objects that were created were never
used before being deleted.
According to callgrind, this reduces cost of QUrl+QUrlPrivate by 25%
in the case tested.
Patch-by: Warwick Allison
Reviewed-by: Thiago Macieira
(cherry picked from commit 51f92c1a4f66f658b3c3b7f034bb8dd661a0d57d)
Diffstat (limited to 'translations/qt_es.ts')
0 files changed, 0 insertions, 0 deletions