distribution/registry
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
..
api Fuzzing: Add 3 fuzzers 2021-11-29 20:59:28 +00:00
auth go.mod: change imports to github.com/distribution/distribution/v3 2021-02-08 18:30:46 +01:00
client Add tag delete API 2021-05-27 23:27:02 +01:00
handlers fix go check issues 2021-11-15 17:31:33 +08:00
listener [Server] Listen and serve on a unix socket 2015-05-11 16:00:14 +03:00
middleware go.mod: change imports to github.com/distribution/distribution/v3 2021-02-08 18:30:46 +01:00
proxy disable insecure cipher suites 2022-01-25 17:18:44 +08:00
storage Realloc slice exponentially in mfs 2022-11-11 18:18:08 +08:00
doc.go Move initialization code from main.go to the registry package 2015-09-09 14:39:31 -07:00
registry.go disable insecure cipher suites 2022-01-25 17:18:44 +08:00
registry_test.go disable insecure cipher suites 2022-01-25 17:18:44 +08:00
root.go go.mod: change imports to github.com/distribution/distribution/v3 2021-02-08 18:30:46 +01:00