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).
  • Loading branch information
wonder-sk committed Nov 4, 2016
1 parent 16719b3 commit db0e7d57218f29dd5a6f386b8b4ce40f11a3ab59
Showing with 0 additions and 1 deletion.
  1. +0 −1 src/core/raster/qgsrasterprojector.cpp
@@ -918,7 +918,6 @@ QgsRasterBlock * QgsRasterProjector::block2( int bandNo, QgsRectangle const & e
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 db0e7d5

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