1
mirror of https://github.com/rclone/rclone synced 2025-07-30 03:30:47 +02:00
Files
.circleci
.github
backend
alias
all
amazonclouddrive
azureblob
b2
box
cache
crypt
drive
dropbox
ftp
googlecloudstorage
http
hubic
jottacloud
koofr
local
about_unix.go
about_windows.go
lchtimes.go
lchtimes_unix.go
local.go
local_internal_test.go
local_test.go
preallocate_other.go
preallocate_unix.go
preallocate_windows.go
read_device_other.go
read_device_unix.go
remove_other.go
remove_test.go
remove_windows.go
tests_test.go
mega
onedrive
opendrive
pcloud
qingstor
s3
sftp
swift
union
webdav
yandex
bin
cmd
docs
fs
fstest
graphics
lib
vendor
vfs
.appveyor.yml
.gitignore
.golangci.yml
.pkgr.yml
.travis.yml
CONTRIBUTING.md
COPYING
MAINTAINERS.md
MANUAL.html
MANUAL.md
MANUAL.txt
Makefile
README.md
RELEASE.md
go.mod
go.sum
notes.txt
rclone.1
rclone.go
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
..