qt5base-lts/tests/auto/corelib/tools
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
..
qalgorithms Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qarraydata Test: remove QSKIP in tst_qarraydata 2012-10-18 14:55:23 +02:00
qbitarray Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qbytearray Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qbytearraymatcher Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qcache Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qchar Update the Unicode Data and Algorithms up to Unicode 6.2 2012-10-09 03:04:41 +02:00
qcontiguouscache Make QContiguousCache with zero capacity not crash 2012-10-19 07:50:29 +02:00
qcryptographichash Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qdate Improve QDate test coverage. 2012-10-24 01:38:54 +02:00
qdatetime Return invalid datetime when calling addMSecs with invalid QDateTime. 2012-10-24 01:38:58 +02:00
qeasingcurve Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qelapsedtimer Remove #if 0 usage in QElapsedTimer autotest. 2012-10-04 03:03:35 +02:00
qexplicitlyshareddatapointer Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qfreelist Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qhash Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qline Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qlist Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qlocale Output leading zeroes for yyyy date formats in QLocale::toString(). 2012-10-24 01:38:49 +02:00
qmap QMap 5.0 - keep track of leftmost node (BIC) 2012-10-27 07:35:57 +02:00
qmargins Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qpair Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qpoint Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qpointf Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qqueue Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qrect Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qregexp Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qregularexpression Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qringbuffer Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qscopedpointer Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qscopedvaluerollback Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qset Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qsharedpointer Test: remove QSKIP in tst_QSharedPointer::lambdaCustomDeleter 2012-10-16 20:43:37 +02:00
qsize Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qsizef Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qstl Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qstring Test: remove QSKIP from tst_qstring 2012-10-25 16:22:39 +02:00
qstring_no_cast_from_bytearray Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qstringbuilder Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qstringlist Test: remove QSKIP from tst_QStringList::initializeList() 2012-10-19 09:41:36 +02:00
qstringmatcher Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qstringref Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qtextboundaryfinder QTextBoundaryFinder: Fix handling of break opportunities 2012-10-12 07:44:51 +02:00
qtime Improve QTime test coverage. 2012-10-24 01:38:56 +02:00
qtimeline Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qvarlengtharray Test: Split tst_QVarLengthArray::oldTests 2012-09-27 21:13:52 +02:00
qvector detach() safely in QVector::erase(), and update callers to not detach. 2012-10-19 18:04:11 +02:00
tools.pro Improve QPoint and QPointF auto tests. 2012-07-11 14:52:17 +02:00