Explorar el Código

Merge pull request #480 from alex3d/patch-1

Optimized fuse inode cache
TW hace 9 años
padre
commit
c4588e4eb4
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      borg/fuse.py

+ 1 - 1
borg/fuse.py

@@ -28,7 +28,7 @@ class ItemCache:
 
     def get(self, inode):
         self.fd.seek(inode - self.offset, io.SEEK_SET)
-        return next(msgpack.Unpacker(self.fd))
+        return next(msgpack.Unpacker(self.fd, read_size=512))
 
 
 class FuseOperations(llfuse.Operations):