Explorar o código

Merge pull request #480 from alex3d/patch-1

Optimized fuse inode cache
TW %!s(int64=9) %!d(string=hai) anos
pai
achega
c4588e4eb4
Modificáronse 1 ficheiros con 1 adicións e 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):