From ef707d2077862933b767bccf17ca0c54f9475de0 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Tue, 13 Apr 2021 15:21:19 +0200 Subject: 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 --- sources/pyside6/PySide6/QtGui/typesystem_gui_common.xml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/sources/pyside6/PySide6/QtGui/typesystem_gui_common.xml b/sources/pyside6/PySide6/QtGui/typesystem_gui_common.xml index 5184b8c10..4dd81aeb4 100644 --- a/sources/pyside6/PySide6/QtGui/typesystem_gui_common.xml +++ b/sources/pyside6/PySide6/QtGui/typesystem_gui_common.xml @@ -1777,18 +1777,23 @@ + - + - + + + + -- cgit v1.2.3