Skip to content
Permalink
Browse files

reserve space in feature list for performance (#8322)

  • Loading branch information
3nids committed Oct 25, 2018
1 parent d1423de commit 6a9cff3fd28562de6a4915b11ab83a8ad00f1429
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/core/qgsvectorlayer.cpp
@@ -3024,6 +3024,7 @@ const QgsFeatureIds &QgsVectorLayer::selectedFeatureIds() const
QgsFeatureList QgsVectorLayer::selectedFeatures() const
{
QgsFeatureList features;
features.reserve( mSelectedFeatureIds.count() );
QgsFeature f;

if ( mSelectedFeatureIds.count() <= 8 )

0 comments on commit 6a9cff3

Please sign in to comment.
You can’t perform that action at this time.