[Checkins] SVN: zc.FileStorage/dev/src/zc/FileStorage/__init__.py Removed lareg buffer sizes which are counterproductive given the

Jim Fulton jim at zope.com
Wed Dec 5 09:08:44 EST 2007


Log message for revision 82140:
  Removed lareg buffer sizes which are counterproductive given the
  seek-happiness if this code.
  

Changed:
  U   zc.FileStorage/dev/src/zc/FileStorage/__init__.py

-=-
Modified: zc.FileStorage/dev/src/zc/FileStorage/__init__.py
===================================================================
--- zc.FileStorage/dev/src/zc/FileStorage/__init__.py	2007-12-05 13:46:21 UTC (rev 82139)
+++ zc.FileStorage/dev/src/zc/FileStorage/__init__.py	2007-12-05 14:08:44 UTC (rev 82140)
@@ -46,7 +46,7 @@
 
         # We set the buffer quite high (32MB) to try to reduce seeks
         # when the storage is disk is doing other io
-        self._file = OptionalSeekFile(path, "rb", 1<<25)
+        self._file = OptionalSeekFile(path, "rb")
 
         self._path = path
         self._stop = stop
@@ -74,7 +74,7 @@
         self.updateReferences(references, packpos, self.file_end)
         index = self.gc(index, references)
 
-        output = OptionalSeekFile(self._name + ".pack", "w+b", 1<<25)
+        output = OptionalSeekFile(self._name + ".pack", "w+b")
         index, new_pos = self.copyToPacktime(packpos, index, output)
         if new_pos == packpos:
             # pack didn't free any data.  there's no point in continuing.



More information about the Checkins mailing list