1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2025-02-28 16:56:33 +00:00

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.
This commit is contained in:
alex3d 2015-12-09 00:34:25 +03:00
parent b4a89414fb
commit 3256f22c74

View file

@ -28,7 +28,7 @@ def add(self, item):
def get(self, inode): def get(self, inode):
self.fd.seek(inode - self.offset, io.SEEK_SET) 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): class FuseOperations(llfuse.Operations):