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:
parent
b4a89414fb
commit
3256f22c74
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ def add(self, item):
|
|||
|
||||
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):
|
||||
|
|
Loading…
Reference in a new issue