summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel/qsharedmemory_p.h
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2015-12-03 13:47:27 +0100
committerMarc Mutz <marc.mutz@kdab.com>2015-12-03 22:35:19 +0000
commitdc41ff5a84a743eae04cacf64274f653c4b1397e (patch)
treec05373c7218e2e5a3b529d315f4c35550e4c2b07 /src/corelib/kernel/qsharedmemory_p.h
parent0d1024e0f147f033e481450e4b1cf918ddb7e735 (diff)
QMdiArea: fix quadratic behavior
Repeatedly calling QVector::erase(it) (via QMutableVectorIterator::remove()) results in quadratic runtime. Use std::stable_partition, which does exactly what the old code tried to do, except in linear time. Change-Id: I6e5911ee781071bbb84d72449c969e3b9907da51 Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Diffstat (limited to 'src/corelib/kernel/qsharedmemory_p.h')
0 files changed, 0 insertions, 0 deletions