distribution/registry/storage/driver
Wei Meng 35cae1099e Realloc slice exponentially in mfs
`registry/storage/driver/inmemory/driver_test.go` times out after ~10min. The slow test is `testsuites.go:TestWriteReadLargeStreams()` which writes a 5GB file.
Root cause is inefficient slice reallocation algorithm. The slice holding file bytes grows only 32K on each allocation. To fix it, this PR grows slice exponentially.

Signed-off-by: Wei Meng <wemeng@microsoft.com>
2022-11-11 18:18:08 +08:00
..
azure storagedriver/s3: Optimized Walk implementation + bugfix 2021-08-16 16:07:25 -04:00
base go.mod: change imports to github.com/distribution/distribution/v3 2021-02-08 18:30:46 +01:00
factory go.mod: change imports to github.com/distribution/distribution/v3 2021-02-08 18:30:46 +01:00
filesystem storagedriver/s3: Optimized Walk implementation + bugfix 2021-08-16 16:07:25 -04:00
gcs bump up golang v1.17 2021-10-27 15:51:30 +08:00
inmemory Realloc slice exponentially in mfs 2022-11-11 18:18:08 +08:00
middleware updatefrequency should not be saved into duration 2021-09-21 11:12:34 +02:00
oss bump up golang v1.17 2021-10-27 15:51:30 +08:00
s3-aws Merge pull request #3622 from ddelange/patch-1 2022-04-26 10:23:14 +01:00
swift storagedriver/s3: Optimized Walk implementation + bugfix 2021-08-16 16:07:25 -04:00
testdriver go.mod: change imports to github.com/distribution/distribution/v3 2021-02-08 18:30:46 +01:00
testsuites go.mod: change imports to github.com/distribution/distribution/v3 2021-02-08 18:30:46 +01:00
fileinfo.go Move storagedriver package to registry/storage/driver 2015-02-11 12:43:04 -08:00
storagedriver.go go.mod: change imports to github.com/distribution/distribution/v3 2021-02-08 18:30:46 +01:00
walk.go storagedriver/s3: Optimized Walk implementation + bugfix 2021-08-16 16:07:25 -04:00
walk_test.go storagedriver/s3: Optimized Walk implementation + bugfix 2021-08-16 16:07:25 -04:00