mirror of
https://github.com/octoleo/restic.git
synced 2024-12-23 19:38:57 +00:00
6f53ecc1ae
Use runtime.GOMAXPROCS(0) as worker count for CPU-bound tasks, repo.Connections() for IO-bound task and a combination if a task can be both. Streaming packs is treated as IO-bound as adding more worker cannot provide a speedup. Typical IO-bound tasks are download / uploading / deleting files. Decoding / Encoding / Verifying are usually CPU-bound. Several tasks are a combination of both, e.g. for combined download and decode functions. In the latter case add both limits together. As the backends have their own concurrency limits restic still won't download more than repo.Connections() files in parallel, but the additional workers can decode already downloaded data in parallel. |
||
---|---|---|
.. | ||
testdata | ||
doc.go | ||
fuzz_test.go | ||
index_parallel_test.go | ||
index_parallel.go | ||
index_test.go | ||
index.go | ||
indexmap_test.go | ||
indexmap.go | ||
key.go | ||
master_index_test.go | ||
master_index.go | ||
packer_manager_test.go | ||
packer_manager.go | ||
packer_uploader.go | ||
repack_test.go | ||
repack.go | ||
repository_internal_test.go | ||
repository_test.go | ||
repository.go | ||
testing.go |