diff options
author | Mitch Curtis <mitch.curtis@digia.com> | 2014-01-09 10:48:41 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-01-09 17:54:24 +0100 |
commit | 62c4e288a11769bde45c9c74d731ed8628303f19 (patch) | |
tree | 6321e7c72a4923bc9df60308a93222400b6eb874 /mkspecs/darwin-g++ | |
parent | 7c03f00a4ea6da72e0064ecb659c4c4bc3c8083b (diff) |
Mitigate performance regression in isExpandedEntityValueTooLarge().
46a8885ae486e238a39efa5119c2714f328b08e4 fixed a security issue [1],
but also caused a large performance regression. This patch improves
the performance from ~98 seconds to ~.1 second for 1000 entities,
using the benchmark in the bug report:
"0": 0 msecs per iteration (total: 0, iterations: 1)
"250": 1,547 msecs per iteration (total: 1,547, iterations: 1)
"500": 12,254 msecs per iteration (total: 12,254, iterations: 1)
"750": 45,506 msecs per iteration (total: 45,506, iterations: 1)
"1000": 98,112 msecs per iteration (total: 98,112, iterations: 1)
"0": 0 msecs per iteration (total: 0, iterations: 1)
"250": 6 msecs per iteration (total: 6, iterations: 1)
"500": 25 msecs per iteration (total: 25, iterations: 1)
"750": 58 msecs per iteration (total: 58, iterations: 1)
"1000": 102 msecs per iteration (total: 102, iterations: 1)
[1] http://lists.qt-project.org/pipermail/announce/2013-December/000036.html
Task-number: QTBUG-35919
Change-Id: I6a6a1a6b606a8033a8f66e294cb55bbd8bdb8a03
Reviewed-by: Richard J. Moore <rich@kde.org>
Diffstat (limited to 'mkspecs/darwin-g++')
0 files changed, 0 insertions, 0 deletions