diff options
author | Milian Wolff <mail@milianw.de> | 2010-12-23 13:31:54 (GMT) |
---|---|---|
committer | Harald Fernengel <harald.fernengel@nokia.com> | 2010-12-23 13:31:54 (GMT) |
commit | 26d2580daab37f4a6ff595a5f18b8a49249b5da1 (patch) | |
tree | 461f5698f9dda89ddbe3e2e65037087be8ef8509 /tests/auto/headers | |
parent | 090b9eb37f067b28ff667dc2f84022fa2664902a (diff) | |
download | Qt-26d2580daab37f4a6ff595a5f18b8a49249b5da1.zip Qt-26d2580daab37f4a6ff595a5f18b8a49249b5da1.tar.gz Qt-26d2580daab37f4a6ff595a5f18b8a49249b5da1.tar.bz2 |
improve performance of QTextEngine, esp. setBoundary by using non-detaching operator[]
Improves scrolling in testfile content.xml attached to QTBUG-9549.
According to callgrind, the improvement is nearly 35% (comparing total incl. cost of QTextEngine::setBoundary)
total incl cost / calls to setBoundary =
before: 6.0883269E9 / 46520 = approx. 130875.47
after: 2.4834313E9 / 29370 = approx. 84556.733
in relation this gives us: 84556.733 / 130875.47 = approx. 0.64608542
Merge-request: 975
Reviewed-by: Harald Fernengel <harald.fernengel@nokia.com>
Diffstat (limited to 'tests/auto/headers')
0 files changed, 0 insertions, 0 deletions