-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Misc optimizations for everything #6300
Conversation
else | ||
{ | ||
lineStringX.append( x ); | ||
lineStringY.append( x ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, Is this an error?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, good catch!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
This is used a lot, yet the current constructor calls the normalize() method which does a bunch of operations for no result. So instead provide a simple optimised null QgsRectangle constructor and save a lot of cycles. Refs qgis#17809
WKB type, and use optimized method instead Refs qgis#17809
Looking into https://issues.qgis.org/issues/17809, this is all I've been able to identify with the profilers at hand. None had particularly significant impacts on the rendering speed though. (Overall around ~ 5-10% improvement).