Sfoglia il codice sorgente

Optimized fuse inode cache

 Single-shot unpacker read buffer decreased from (default) 1Mb to 512b.
"ls -alR" on ~100k files backup mounted with fuse went from ~7min to 30 seconds.
alex3d 9 anni fa
parent
commit
3256f22c74
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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):