"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
onedrive: minor optimization of quickxorhash
Isaac Levybe1a668e9514
diff --git a/backend/onedrive/quickxorhash/quickxorhash.go b/backend/onedrive/quickxorhash/quickxorhash.goindex b7976b76f..c918ca58a 100644--- a/backend/onedrive/quickxorhash/quickxorhash.go+++ b/backend/onedrive/quickxorhash/quickxorhash.go@@ -136,7 +136,8 @@ func (q *quickXorHash) Write(p []byte) (n int, err error) {func (q *quickXorHash) checkSum() (h [Size]byte) {// Output the data as little endian bytesph := 0- for _, d := range q.data[:len(q.data)-1] {+ for i := 0; i < len(q.data)-1; i++ {+ d := q.data[i]_ = h[ph+7] // bounds checkh[ph+0] = byte(d >> (8 * 0))h[ph+1] = byte(d >> (8 * 1))