diff options
| author | Marc Mutz <marc.mutz@kdab.com> | 2019-06-06 18:19:14 +0200 |
|---|---|---|
| committer | Marc Mutz <marc.mutz@kdab.com> | 2019-06-06 18:19:16 +0200 |
| commit | 7d98307788dfe12d56a660df29c4451534e20f3c (patch) | |
| tree | 3e6b98a871e61212ab8c42d3d6bb33e4f3d34b8c /src/qml/compiler/qv4codegen.cpp | |
| parent | 8de93acc2b3a0abafaad3aec0c95f22d36bc2f62 (diff) | |
Replace remaining QLinkedLists with QVector
In both cases, the container holds pointers, so stability of
references can be ruled out as a cause for using linked lists. Both
containers are also only ever appended to and then consumed, so there
are no insertions in the middle that a linked list may speed up. Last,
it also cannot be the sheer size of the container, as QLinkedList has
3x the memory consumption of a vector.
We conclude that none of the things that make QLinkedList a container
of choice apply here, so we can use a QVector instead.
In QSGAbstractSoftwareRenderer, there was an accessor for the linked
list member, but it appears unused, so was removed.
Change-Id: I273f89c0d1267444019088371a5eb0b3b32a763c
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/qml/compiler/qv4codegen.cpp')
0 files changed, 0 insertions, 0 deletions
