rclone/fs/operations
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
..
check.go Error strings should not be capitalized 2022-06-23 23:26:02 +02:00
check_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
dedupe.go dedupe: add quit as a choice in interactive mode 2022-01-14 19:57:48 +01:00
dedupe_test.go size: warn about inaccurate results when objects with unknown size 2022-04-26 19:37:15 +02:00
listdirsorted_test.go filter: allow multiple --exclude-if-present flags - fixes #6219 2022-06-08 17:11:52 +02:00
lsjson.go lsjson: add --metadata/-M flag 2022-06-29 14:29:36 +01:00
lsjson_test.go lsjson: add --metadata/-M flag 2022-06-29 14:29:36 +01:00
multithread.go Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
multithread_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
operations.go sync,operations: optimise --copy-dest and --compare-dest 2022-08-03 17:44:47 +01:00
operations_internal_test.go fs: deglobalise the config #4685 2020-11-26 16:40:12 +00:00
operations_test.go sync: add filter-sensitivity to --backup-dir option 2022-07-13 16:04:53 +01:00
rc.go lsjson: add --metadata/-M flag 2022-06-29 14:29:36 +01:00
rc_test.go size: warn about inaccurate results when objects with unknown size 2022-04-26 19:37:15 +02:00
reopen.go staticcheck: use result of type assertion to simplify cases 2022-07-04 11:24:59 +02:00
reopen_test.go Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00