mirror of
https://github.com/kopia/kopia.git
synced 2026-01-27 15:58:03 -05:00
* repo: big performance improvement for WriteContent with repo server When re-uploading previously snapshotted directory we fetch directory content `k<hash>` and very frequently end up writing the exact same content. By caching last N content IDs we can avoid costly round-trip to the server since we know that content ID was present in the session. Also added small number of asynchronous writes, which also helps with upload performance. Background writes are awaited before Flush(). Performance when snapshotting lots of small files (source code): 31.9 GB files:471205 dirs:75817, warm cache Before: 260s After: 55s (4-5x faster) * fixed tests