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
..
2019-05-11 16:49:48 +01:00
2019-04-15 21:49:58 +01:00
2019-02-16 14:38:07 +00:00
2019-02-16 14:38:07 +00:00
2019-04-15 21:49:58 +01:00
2019-05-01 16:32:34 +01:00
2019-02-16 14:38:07 +00:00
2019-02-07 19:51:03 +01:00
2019-02-07 19:51:03 +01:00
2019-02-16 14:38:07 +00:00