diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-04-13 15:21:19 +0200 |
|---|---|---|
| committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2021-04-13 15:48:30 +0000 |
| commit | c226d281975e933c69e56da7a54e9f2b8c7107b6 (patch) | |
| tree | 2f3b31b04b1ab4e4cddb3b6dc134f1dac7efb329 /examples/external/matplotlib/widget3d/widget3d.py | |
| parent | 4267fd4fa1e98557056c643d39fc276dc48091dd (diff) | |
PySide6: Fix performance of QPainter::drawPoints(QPolygon)
Reorder the overloads so that the QPolygon overload is checked first
before the costly sequence type check of the QPoint list.
Speeds up the example from 1800ms to 80ms.
Fixes: PYSIDE-1540
Change-Id: I108b0e98c82540703ee80345026ecdc3b55dfd4e
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
(cherry picked from commit ef707d2077862933b767bccf17ca0c54f9475de0)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'examples/external/matplotlib/widget3d/widget3d.py')
0 files changed, 0 insertions, 0 deletions
