path: root/src/gui
diff options
authorLars Knoll <>2015-03-18 08:49:09 +0100
committerSimon Hausmann <>2016-02-18 07:38:37 +0000
commit4889269ff0fb37130b332863e82dd7c19564116c (patch)
treec3a7a27faf4c7de6b37c053862921e3c5f8b9481 /src/gui
parent03f1a69e9cffe919597373471f7609521a465470 (diff)
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 <>
Diffstat (limited to 'src/gui')
0 files changed, 0 insertions, 0 deletions