diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-04-13 15:21:19 +0200 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-04-13 16:04:43 +0200 |
| commit | ef707d2077862933b767bccf17ca0c54f9475de0 (patch) | |
| tree | 738eab008fdfbdb4a027e2349f3619b79c2641e5 /examples/external/matplotlib/widget3d/widget3d.py | |
| parent | af1bdd8447771728321984f87447187f0284db6b (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
Pick-to: 6.0 5.15
Change-Id: I108b0e98c82540703ee80345026ecdc3b55dfd4e
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'examples/external/matplotlib/widget3d/widget3d.py')
0 files changed, 0 insertions, 0 deletions
