distribution/registry/storage/driver/inmemory
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
..
driver.go storagedriver/s3: Optimized Walk implementation + bugfix 2021-08-16 16:07:25 -04:00
driver_test.go go.mod: change imports to github.com/distribution/distribution/v3 2021-02-08 18:30:46 +01:00
mfs.go Realloc slice exponentially in mfs 2022-11-11 18:18:08 +08:00