Please sign in to comment.
Lazily initialize QgsDistanceArea in expressions
This is barely ever used (only when the $perimeter, $length or $area functions are used in an expression), and is expensive to construct. We've been merrily creating them EVERY time we prepare an expression resulting in a lot of wasted effort. By lazily creating it only if needed we save a bunch of wasted processing and ultimately get MUCH faster expression preparation. (especially noticable when animating vector layers using data defined symbol settings or categorized/graduated/rule based renderers)
- Loading branch information
Showing with 17 additions and 9 deletions.