summaryrefslogtreecommitdiffstats
path: root/examples/tutorials/threads/clock/clockthread.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@nokia.com>2012-09-07 10:02:04 +0200
committerQt by Nokia <qt-info@nokia.com>2012-09-07 18:41:22 +0200
commit3a48320fd6335d21451f07cb68336404177e2d87 (patch)
tree598a446840aad5740703c5019a44062c22a0c00a /examples/tutorials/threads/clock/clockthread.cpp
parent5b1bc864a91c3bdb02e36e7546dadebabb42fdec (diff)
Fix performance regression when appending one vector to another
When appending a QVector to an existing vector the code would unconditionally realloc the vector instead of first checking whether we can do without. This gives a quadratic behaviour when repeatedly appending a vector to another. Change-Id: I2cd81253e6a8aec0bc4402e6fbda262435080966 Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org> Reviewed-by: Simon Hausmann <simon.hausmann@nokia.com> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'examples/tutorials/threads/clock/clockthread.cpp')
0 files changed, 0 insertions, 0 deletions