From 4689fd0c2298e71d1d728b4a92cd817b2dc66af5 Mon Sep 17 00:00:00 2001 From: Marian Beermann Date: Sun, 18 Jun 2017 02:04:21 +0200 Subject: [PATCH] cache: explain fetch_missing_csize cost --- src/borg/cache.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/borg/cache.py b/src/borg/cache.py index 595962da6..47b53deb2 100644 --- a/src/borg/cache.py +++ b/src/borg/cache.py @@ -656,6 +656,8 @@ class LocalCache(CacheStatsMixin): else: fetch_ids = all_missing_ids + # This is potentially a rather expensive operation, but it's hard to tell at this point + # if it's a problem in practice (hence the experimental status of --no-cache-sync). for id_, data in zip(fetch_ids, decrypted_repository.repository.get_many(fetch_ids)): entry = chunk_idx[id_]._replace(csize=len(data)) chunk_idx[id_] = entry