Skip to content
Permalink
Browse files

Remove per-pixel debug msg slowing down reprojection (fixes #15796)

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 0dd094ca9df50db8e1299ed2d4c66013fbc46c39
Showing with 0 additions and 1 deletion.
  1. +0 −1 src/core/raster/qgsrasterprojector.cpp
@@ -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 ) )

0 comments on commit 0dd094c

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