rclone/fs/sync
Nick Craig-Wood a875320e37 sync,operations: optimise --copy-dest and --compare-dest
Before this change --compare-dest and --copy-dest would check to see
if the compare/copy object existed first, before seeing if the
destination object was present.

This is inefficient, because in most --copy-dest syncs the destination
will be present and the compare/copy object need never be tested.
--compare-dest syncs may also be speeded up if they are done to the
same directory repeatedly.

This fixes the problem by re-arranging the logic so if the transfer is
not needed then the compare/copy object is never tested.

See: https://forum.rclone.org/t/union-with-copy-dest-enabled-is-slower-than-expected/32172
2022-08-03 17:44:47 +01:00
..
pipe_test.go sync: implement --order-by xxx,mixed 2020-03-16 15:50:04 +00:00
pipe.go Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
rc_test.go 🧪 fstest: fix time tests on Windows and add convenience methods to check local and remote fs with precision 2021-11-09 11:43:36 +00:00
rc.go docs: cross link doc pages for related commands 2022-06-21 23:43:00 +02:00
sync_test.go sync: fix --max-duration and --cutoff-mode soft 2022-06-16 22:13:50 +01:00
sync.go sync,operations: optimise --copy-dest and --compare-dest 2022-08-03 17:44:47 +01:00