diff options
| author | Lars Knoll <lars.knoll@theqtcompany.com> | 2015-03-18 08:49:09 +0100 |
|---|---|---|
| committer | Simon Hausmann <simon.hausmann@theqtcompany.com> | 2016-02-18 07:38:37 +0000 |
| commit | 4889269ff0fb37130b332863e82dd7c19564116c (patch) | |
| tree | c3a7a27faf4c7de6b37c053862921e3c5f8b9481 /src/gui/opengl/qopenglversionfunctions.h | |
| parent | 03f1a69e9cffe919597373471f7609521a465470 (diff) | |
| download | qtbase-4889269ff0fb37130b332863e82dd7c19564116c.tar.gz | |
Fix quadratic behavior when converting from QVariant
The old code called insert for each item, leading to constant
reallocation of the data structure. Instead rely on the fact
that a QVariantMap (as well as the variant list) is sorted, so
we can convert to the QJson data structure in one go without
lots of reallocations.
Task-number: QTBUG-44737
Change-Id: Id2d38d278fb9afa5e062c7353b4d4215bdfb993c
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/gui/opengl/qopenglversionfunctions.h')
0 files changed, 0 insertions, 0 deletions
