diff data/fileio/MatrixFile.cpp @ 555:8accc7969c1c

* Some steps to avoid backward seeks in MatrixFile in common use cases
author Chris Cannam
date Mon, 09 Feb 2009 11:38:08 +0000
parents 60482f13e627
children 8212c9d3b3b3
line wrap: on
line diff
--- a/data/fileio/MatrixFile.cpp	Sun Feb 08 20:03:54 2009 +0000
+++ b/data/fileio/MatrixFile.cpp	Mon Feb 09 11:38:08 2009 +0000
@@ -417,9 +417,11 @@
 
     off_t off = m_headerSize + x * m_height * m_cellSize + x;
 
+#ifdef DEBUG_MATRIX_FILE_READ_SET
     if (m_mode == ReadOnly) {
         std::cerr << "MatrixFile[" << m_fd << "]::seekTo(" << x << "): off = " << off << std::endl;
     }
+#endif
 
 #ifdef DEBUG_MATRIX_FILE_READ_SET
     std::cerr << "MatrixFile[" << m_fd << "]::seekTo(" << x << "): off = " << off << std::endl;