Please sign in to comment.
Fix #11965 - improve performance of selectedFeatures()
The slowness of merge / split features tools was caused by the change in the logic in selectedFeatures(): instead of fetching individual features one by one by ID, the whole layer is traversed. Such approach makes sense when many features are selected, but with few features there is considerable delay when dealing with big layers. The implementation is not ideal, but for some common cases the performance is much better. Merging of features now does not request selected features when not necessary. When rendering, avoid using layer's extent() method that may force expensive calculation of layer's extent.
- Loading branch information
Showing with 34 additions and 14 deletions.