summaryrefslogtreecommitdiffstats
path: root/src/widgets/doc/snippets/code
diff options
context:
space:
mode:
authorAndre de la Rocha <andre.rocha@qt.io>2019-09-02 16:46:07 +0200
committerAndre de la Rocha <andre.rocha@qt.io>2019-10-11 16:53:23 +0200
commit31012df705c37503be00f0ddc2c323e73fd28067 (patch)
treeb75d19c181e1ba874cb0f421c729ba3d8f07d78b /src/widgets/doc/snippets/code
parent014d7ac65417ed9b5ffb85cca24d16564ff5005a (diff)
Fix QGraphicsScene::update() performance
A previous fix has caused a performance degradation while adding a check for avoiding adding duplicated rectangles to the update list. This patch fixes it by using a std::set instead of a QList, avoiding duplication while using an O(log N) operation, instead of the O(N) used before. Fixes: QTBUG-77952 Change-Id: Ifa9fbf110e0bad60ee02a42d91281981fd98ceab Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/widgets/doc/snippets/code')
0 files changed, 0 insertions, 0 deletions