瀏覽代碼

fuse: hot-spot micro-opt for versions view

this way it does not create/discard tons of lists
Thomas Waldmann 5 年之前
父節點
當前提交
392bc3e3b1
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      src/borg/fuse.py

+ 1 - 2
src/borg/fuse.py

@@ -362,8 +362,7 @@ class FuseBackend(object):
                 file_id = blake2b_128(path)
                 current_version, previous_id = self.versions_index.get(file_id, (0, None))
 
-                chunk_ids = [chunk_id for chunk_id, _, _ in item.chunks]
-                contents_id = blake2b_128(b''.join(chunk_ids))
+                contents_id = blake2b_128(b''.join(chunk_id for chunk_id, _, _ in item.chunks))
 
                 if contents_id != previous_id:
                     current_version += 1