rclone/backend
albertony 9172c9b3dd crypt: reduce allocations
This changes crypt's use of sync.Pool: Instead of storing slices
it now stores pointers pointers fixed sized arrays.

This issue was reported by staticcheck:

SA6002 - Storing non-pointer values in sync.Pool allocates memory

A sync.Pool is used to avoid unnecessary allocations and reduce
the amount of work the garbage collector has to do.

When passing a value that is not a pointer to a function that accepts
an interface, the value needs to be placed on the heap, which means
an additional allocation. Slices are a common thing to put in sync.Pools,
and they're structs with 3 fields (length, capacity, and a pointer to
an array). In order to avoid the extra allocation, one should store
a pointer to the slice instead.

See: https://staticcheck.io/docs/checks#SA6002
2023-03-26 14:28:15 +02:00
..
alias build: add package comments to silence revive linter 2022-08-28 13:43:51 +02:00
all Add a native backend for oracle object storage - fixes #6299 2022-10-13 13:04:56 +01:00
amazonclouddrive build: reformat comments to pass go1.19 vet 2022-08-05 16:35:41 +01:00
azureblob azureblob: remove unused code (fixes issue reported by the unused linter) 2023-03-26 14:28:15 +02:00
b2 accounting: Make checkers show what they are doing 2023-03-01 11:10:38 +00:00
box Replace deprecated ioutil 2022-11-07 11:41:47 +00:00
cache cache: remove unused code (fixes issue reported by the unused linter) 2023-03-26 14:28:15 +02:00
chunker rcat: preserve metadata when Copy falls back to Rcat 2022-11-10 12:04:35 +00:00
combine backend: fix typos found by codespell 2023-03-24 11:34:14 +00:00
compress Replace deprecated ioutil 2022-11-07 11:41:47 +00:00
crypt crypt: reduce allocations 2023-03-26 14:28:15 +02:00
drive drive: add env_auth to drive provider 2023-03-24 11:11:21 +00:00
dropbox dropbox: remove unused code (fixes issue reported by the unused linter) 2023-03-26 14:28:15 +02:00
fichier backend: fix typos found by codespell 2023-03-24 11:34:14 +00:00
filefabric Replace deprecated ioutil 2022-11-07 11:41:47 +00:00
ftp ftp: fix 426 errors on downloads with vsftpd 2023-03-15 18:09:29 +00:00
googlecloudstorage googlecloudstorage: added gcs requester pays 2023-03-16 17:13:37 +00:00
googlephotos fs: move operations.NewOverrideRemote to fs.NewOverrideRemote 2022-11-21 08:02:09 +00:00
hasher accounting: Make checkers show what they are doing 2023-03-01 11:10:38 +00:00
hdfs backend: fix repeated words typos 2023-03-25 09:31:36 +01:00
hidrive hidrive: remove unused code (fixes issue reported by the unused linter) 2023-03-26 14:28:15 +02:00
http test: replace defer cleanup with t.Cleanup 2022-12-09 14:38:05 +00:00
internetarchive all: fix spelling across the project 2022-08-30 11:16:26 +02:00
jottacloud backend: fix typos found by codespell 2023-03-24 11:34:14 +00:00
koofr all: fix spelling across the project 2022-08-30 11:16:26 +02:00
local backend: fix typos found by codespell 2023-03-24 20:42:45 +00:00
mailru mailru: allow timestamps to be before the epoch 1970-01-01 2022-11-10 11:27:01 +00:00
mega backend: fix typos found by codespell 2023-03-24 20:42:45 +00:00
memory Replace deprecated ioutil 2022-11-07 11:41:47 +00:00
netstorage netstorage: ignore false positive from the staticcheck linter regarding header name not being canonical 2023-03-26 14:28:15 +02:00
onedrive onedrive: report any list errors during cleanup 2023-03-26 14:28:15 +02:00
opendrive build: add package comments to silence revive linter 2022-08-28 13:43:51 +02:00
oracleobjectstorage oracleobjectstorage: remove empty branch (fixes issue reported by the staticcheck linter) 2023-03-26 14:28:15 +02:00
pcloud all: fix spelling across the project 2022-08-30 11:16:26 +02:00
premiumizeme build: reformat comments to pass go1.19 vet 2022-08-05 16:35:41 +01:00
putio build: add package comments to silence revive linter 2022-08-28 13:43:51 +02:00
qingstor build: add package comments to silence revive linter 2022-08-28 13:43:51 +02:00
s3 backend: fix typos found by codespell 2023-03-24 11:34:14 +00:00
seafile seafile: remove unused code for legacy API v2 (fixes issue reported by the unused linter) 2023-03-26 14:28:15 +02:00
sftp backend: fix repeated words typos 2023-03-25 09:31:36 +01:00
sharefile Replace deprecated ioutil 2022-11-07 11:41:47 +00:00
sia build: add package comments to silence revive linter 2022-08-28 13:43:51 +02:00
smb smb: code cleanup to avoid overwriting ctx before first use (fixes issue reported by the staticcheck linter) 2023-03-26 14:28:15 +02:00
storj storj: update satellite urls and labels 2023-02-06 13:18:15 +00:00
sugarsync Replace deprecated ioutil 2022-11-07 11:41:47 +00:00
swift swift: remove unused code (fixes issue reported by the unused linter) 2023-03-26 14:28:15 +02:00
union union: remove unused code (fixes issue reported by the unused linter) 2023-03-26 14:28:15 +02:00
uptobox uptobox: fix improper regex 2023-03-16 17:12:27 +00:00
webdav webdav: add support for chunked uploads — fix #3666 2023-03-17 11:09:08 +00:00
yandex build: add package comments to silence revive linter 2022-08-28 13:43:51 +02:00
zoho zoho: remove unused code (fixes issue reported by the unused linter) 2023-03-26 14:28:15 +02:00