Skip to content
Permalink
Browse files

optimize memory reservation in getCellValuesFromBlockStack()

  • Loading branch information
root676 authored and nyalldawson committed Jul 2, 2020
1 parent bf7a47a commit cf6e634d603047f365402dc771cc4e81b7c7a7f4
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/analysis/processing/qgsrasteranalysisutils.cpp
@@ -291,6 +291,8 @@ std::vector<double> QgsRasterAnalysisUtils::getCellValuesFromBlockStack( const s
{
//get all values from inputBlocks
std::vector<double> cellValues;
cellValues.reserve( inputBlocks.size() );

for ( auto &block : inputBlocks )
{
double value = 0;

0 comments on commit cf6e634

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