qt5base-lts/tests/auto/corelib
Thorbjørn Lund Martsum 6e4d7bbb0b QMap 5.0 - keep track of leftmost node (BIC)
This suggestion keeps track of the most left node.
The point is that constBegin() becomes a lot faster.

That speeds up iteration a bit, and makes it O(1) to get the
first element. The penalty in insert and remove is very small.
On large trees it seems to be less than 1%.

It should be noticed that constBegin() is a very common hint
on my planned change to 5.1, and this opperation will without
this patch cost 2 x log N. One when the user calls the hint
with begin - and one where it is compared with begin.

Other std::maps has a very fast begin(). E.g
http://www.cplusplus.com/reference/stl/map/begin/
(begin with constant time)

Change-Id: I221f6755aa8bd16a5189771c5bc8ae56c8ee0fb4
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
2012-10-27 07:35:57 +02:00
..
animation normalise signal/slot signatures [QtCore tests] 2012-10-22 03:21:01 +02:00
codecs Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
global QFlags: use unsigned int when the enum's underlying is unsigned 2012-09-28 23:50:10 +02:00
io test: Remove QSKIP from tst_QSettings::fileName() 2012-10-24 01:39:06 +02:00
itemmodels normalise signal/slot signatures [QtCore tests] 2012-10-22 03:21:01 +02:00
json test: Rename test case name TestQtJson -> tst_QtJson 2012-10-24 01:39:02 +02:00
kernel Core/kernel: Make some signals private. 2012-10-25 15:56:14 +02:00
mimetypes Use QStringList::join(QChar) overload where applicable [QtCore] 2012-09-23 23:30:18 +02:00
plugin Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
statemachine normalise signal/slot signatures [QtCore tests] 2012-10-22 03:21:01 +02:00
thread normalise signal/slot signatures [QtCore tests] 2012-10-22 03:21:01 +02:00
tools QMap 5.0 - keep track of leftmost node (BIC) 2012-10-27 07:35:57 +02:00
xml Remove duplicate words and punctuation from documentation. 2012-09-26 04:03:20 +02:00
corelib.pro Import QMimeType / QMimeDatabase into QtCore. 2012-02-18 22:19:43 +01:00