rclone/backend/local
Nick Craig-Wood c3af0a1eca local: only calculate the required hashes for big speedup
Before this change we calculated all possible hashes for the file when
the `Hashes` method was called.

After we only calculate the Hash requested.

Almost all uses of `Hash` just need one checksum.  This will slow down
`rclone lsjson` with the `--hash` flag.  Perhaps lsjson should have a
`--hash-type` flag.

However it will speed up sync/copy/move/check/md5sum/sha1sum etc.

Before it took 12.4 seconds to md5sum a 1GB file, after it takes 3.1
seconds which is the same time the md5sum utility takes.
2019-05-11 23:35:19 +01:00
..
about_unix.go build: fix problems found with unconvert 2019-02-02 11:45:07 +00:00
about_windows.go about: complete other providers and re-work internals 2018-04-17 21:53:27 +01:00
lchtimes_unix.go local: when using -l fix setting modification times of symlinks #1152 2019-01-28 13:47:27 +00:00
lchtimes.go local: when using -l fix setting modification times of symlinks #1152 2019-01-28 13:47:27 +00:00
local_internal_test.go local: fix symlink tests under Windows 2019-01-29 15:40:49 +00:00
local_test.go Make integration tests use go1.7+ nested tests #2154 2018-04-08 15:04:14 +01:00
local.go local: only calculate the required hashes for big speedup 2019-05-11 23:35:19 +01:00
preallocate_other.go local: preallocate files on linux with fallocate(2) 2018-09-19 16:04:57 +01:00
preallocate_unix.go local: preallocate files on linux with fallocate(2) 2018-09-19 16:04:57 +01:00
preallocate_windows.go local: preallocate files on Windows to reduce fragmentation #2469 2018-09-19 16:04:57 +01:00
read_device_other.go Implement new backend config system 2018-07-16 21:20:47 +01:00
read_device_unix.go build: fix problems found with unconvert 2019-02-02 11:45:07 +00:00
remove_other.go local: retry remove on Windows sharing violation error #2202 2018-04-07 17:36:26 +01:00
remove_test.go local: retry remove on Windows sharing violation error #2202 2018-04-07 17:36:26 +01:00
remove_windows.go local: retry remove on Windows sharing violation error #2202 2018-04-07 17:36:26 +01:00
tests_test.go Move all backends into backend directory 2018-01-12 17:07:38 +00:00