Skip to content

Commit

Permalink
Remove per-pixel debug msg slowing down reprojection (fixes #15796)
Browse files Browse the repository at this point in the history
Even at level 5, the debug string would still be built and thrown away,
and affects both debug builds and RelWithDebugInfo (used for windows -dev builds).

(cherry picked from commit db0e7d5)
  • Loading branch information
wonder-sk committed Nov 4, 2016
1 parent 24361c5 commit 0dd094c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/core/raster/qgsrasterprojector.cpp
Expand Up @@ -827,7 +827,6 @@ QgsRasterBlock * QgsRasterProjector::block( int bandNo, QgsRectangle const & ex
if ( !inside ) continue; // we have everything set to no data

qgssize srcIndex = static_cast< qgssize >( srcRow ) * pd.srcCols() + srcCol;
QgsDebugMsgLevel( QString( "row = %1 col = %2 srcRow = %3 srcCol = %4" ).arg( i ).arg( j ).arg( srcRow ).arg( srcCol ), 5 );

// isNoData() may be slow so we check doNoData first
if ( doNoData && inputBlock->isNoData( srcRow, srcCol ) )
Expand Down

0 comments on commit 0dd094c

Please sign in to comment.