distribution/registry/storage
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
..
cache go.mod: change imports to github.com/distribution/distribution/v3 2021-02-08 18:30:46 +01:00
driver Realloc slice exponentially in mfs 2022-11-11 18:18:08 +08:00
blob_test.go go.mod: change imports to github.com/distribution/distribution/v3 2021-02-08 18:30:46 +01:00
blobserver.go go.mod: change imports to github.com/distribution/distribution/v3 2021-02-08 18:30:46 +01:00
blobstore.go go.mod: change imports to github.com/distribution/distribution/v3 2021-02-08 18:30:46 +01:00
blobwriter.go go.mod: change imports to github.com/distribution/distribution/v3 2021-02-08 18:30:46 +01:00
blobwriter_nonresumable.go bump up golang v1.17 2021-10-27 15:51:30 +08:00
blobwriter_resumable.go bump up golang v1.17 2021-10-27 15:51:30 +08:00
catalog.go go.mod: change imports to github.com/distribution/distribution/v3 2021-02-08 18:30:46 +01:00
catalog_test.go go.mod: change imports to github.com/distribution/distribution/v3 2021-02-08 18:30:46 +01:00
doc.go Move storage package under registry package 2015-02-11 12:43:04 -08:00
error.go Remove old walk function 2018-01-18 13:06:07 -08:00
filereader.go go.mod: change imports to github.com/distribution/distribution/v3 2021-02-08 18:30:46 +01:00
filereader_test.go go.mod: change imports to github.com/distribution/distribution/v3 2021-02-08 18:30:46 +01:00
garbagecollect.go go.mod: change imports to github.com/distribution/distribution/v3 2021-02-08 18:30:46 +01:00
garbagecollect_test.go go.mod: change imports to github.com/distribution/distribution/v3 2021-02-08 18:30:46 +01:00
io.go close the io.ReadCloser from storage drive 2021-03-24 17:58:35 +08:00
linkedblobstore.go go.mod: change imports to github.com/distribution/distribution/v3 2021-02-08 18:30:46 +01:00
linkedblobstore_test.go go.mod: change imports to github.com/distribution/distribution/v3 2021-02-08 18:30:46 +01:00
manifestlisthandler.go go.mod: change imports to github.com/distribution/distribution/v3 2021-02-08 18:30:46 +01:00
manifeststore.go go.mod: change imports to github.com/distribution/distribution/v3 2021-02-08 18:30:46 +01:00
manifeststore_test.go Incorrect variable in test output 2022-03-27 11:05:47 +01:00
ocimanifesthandler.go registry: verify digest and check blob presence when put manifest 2021-04-16 16:11:52 +08:00
ocimanifesthandler_test.go registry: verify digest and check blob presence when put manifest 2021-04-16 16:11:52 +08:00
paths.go fixes to make layersPathSpec work 2019-12-05 20:48:33 +01:00
paths_test.go Add unit tests for BlobEnumerator 2019-12-06 09:38:13 +01:00
purgeuploads.go go.mod: change imports to github.com/distribution/distribution/v3 2021-02-08 18:30:46 +01:00
purgeuploads_test.go disable insecure cipher suites 2022-01-25 17:18:44 +08:00
registry.go go.mod: change imports to github.com/distribution/distribution/v3 2021-02-08 18:30:46 +01:00
schema2manifesthandler.go registry: verify digest and check blob presence when put manifest 2021-04-16 16:11:52 +08:00
schema2manifesthandler_test.go registry: verify digest and check blob presence when put manifest 2021-04-16 16:11:52 +08:00
signedmanifesthandler.go go.mod: change imports to github.com/distribution/distribution/v3 2021-02-08 18:30:46 +01:00
tagstore.go Add tag delete API 2021-05-27 23:27:02 +01:00
tagstore_test.go Add tag delete API 2021-05-27 23:27:02 +01:00
v1unsupportedhandler.go go.mod: change imports to github.com/distribution/distribution/v3 2021-02-08 18:30:46 +01:00
vacuum.go go.mod: change imports to github.com/distribution/distribution/v3 2021-02-08 18:30:46 +01:00