diff data/fileio/MatrixFile.h @ 554:60482f13e627

* Some changes and debug toward reducing backward seeks (v. slow on os/x apparently)
author Chris Cannam
date Sun, 08 Feb 2009 20:03:54 +0000
parents 107d3f3705c9
children 59e7fe1b1003
line wrap: on
line diff
--- a/data/fileio/MatrixFile.h	Fri Feb 06 15:06:23 2009 +0000
+++ b/data/fileio/MatrixFile.h	Sun Feb 08 20:03:54 2009 +0000
@@ -94,11 +94,15 @@
     ResizeableBitset *m_setColumns; // only in writer
     bool m_autoClose;
 
+    // In reader: if this is >= 0, we can read that column directly
+    // without seeking (and we know that the column exists)
+    mutable int m_readyToReadColumn;
+
     static std::map<QString, int> m_refcount;
     static QMutex m_createMutex;
 
     void initialise();
-    bool seekTo(size_t x, size_t y) const;
+    bool seekTo(size_t x) const;
 };
 
 #endif