OSDN Git Service

drop the QVarLengthArray<T> pre-allocation feature
authorIvailo Monev <xakepa10@gmail.com>
Tue, 30 May 2023 17:37:04 +0000 (20:37 +0300)
committerIvailo Monev <xakepa10@gmail.com>
Tue, 30 May 2023 17:37:04 +0000 (20:37 +0300)
commit2cb10fdb432dc1d55f386437f9558021c7c7db06
tree39cb9a5a022c4e56b4a3d5d9eb240612a3adddc9
parentba54337ad46a3c845819a6c5fef112fc90479c49
drop the QVarLengthArray<T> pre-allocation feature

note that it was optimistically increasing the size by 2x from
QVarLengthArray<T>::append() aswell

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
24 files changed:
src/core/kernel/qeventdispatcher_unix_p.h
src/core/kernel/qmetaobject.cpp
src/core/tools/qcontainerfwd.h
src/core/tools/qlocale_p.h
src/core/tools/qvarlengtharray.h
src/core/tools/qvarlengtharray.qdoc
src/dbus/qdbusintegrator.cpp
src/dbus/qdbusmetaobject.cpp
src/declarative/qml/parser/qdeclarativejs.g
src/declarative/qml/parser/qdeclarativejsparser.cpp
src/declarative/qml/qdeclarativeobjectscriptclass.cpp
src/declarative/qml/qdeclarativevme.cpp
src/gui/painting/qbackingstore.cpp
src/gui/painting/qpaintengine_raster.cpp
src/gui/painting/qpainter.cpp
src/gui/text/qtextengine_p.h
src/gui/widgets/qsplitter.cpp
src/script/api/qscriptvalue.cpp
src/script/bridge/qscriptqobject.cpp
src/svg/qsvghandler.cpp
src/tools/qdbus/qdbuscpp2xml.cpp
tests/auto/qdbusthreading/tst_qdbusthreading.cpp
tests/auto/qvarlengtharray/tst_qvarlengtharray.cpp
tests/benchmarks/gui/graphicsview/qgraphicsview/chiptester/chip.cpp