Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Highlight: use PathPolyline instead of PathMove/PathLine #2848

Merged
merged 1 commit into from
Oct 13, 2023

Conversation

wonder-sk
Copy link
Contributor

@wonder-sk wonder-sk commented Oct 11, 2023

CU-861n417r8

Highlighting geometries with lots of vertices was slow because a shape path with many PathMove/PathLine was apparently doing loads of internal updates when constructing it. Qt introduced PathPolyline in a latter qt5 release (5.14) which makes parsing of dynamically constructed complex paths much more efficient.

On desktop build: a polygon with 15K vertices was taking 5-10 seconds to highlight, now it is less than a second.

Fixes #833

Highlighting geometries with lots of vertices was slow because a shape path with
many PathMove/PathLine was apparently doing loads of internal updates when
constructing it. Qt introduced PathPolyline in a latter qt5 release (5.14)
which makes parsing of dynamically constructed complex paths much more efficient.
@PeterPetrik PeterPetrik added the ready-for-testing Ready to be tested by testers crew - passed review by devs label Oct 11, 2023
@PeterPetrik
Copy link
Contributor

@jozef-budac can you please test this one?

android: https://github.com/MerginMaps/input/suites/17110071391/artifacts/977405511
ios: version 23.10.467911

@jozef-budac
Copy link

I can confirm the loading of such a polygons is very fast

@PeterPetrik PeterPetrik merged commit ced3c90 into master Oct 13, 2023
10 of 11 checks passed
@PeterPetrik PeterPetrik deleted the fix-slow-rubberband branch October 13, 2023 06:17
@tomasMizera tomasMizera removed the ready-for-testing Ready to be tested by testers crew - passed review by devs label Oct 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Slow identification of polygons with many vertices
5 participants