forked from TrueCloudLab/distribution
Makes LayerUpload an io.ReaderFrom
This allows wrappers of LayerUpload to implement io.ReadFrom, which prevents io.Copy on LayerUpload implementations from using repeated 32kB Writes. This has a huge performance implication, especially for s3/azure storage drivers.
This commit is contained in:
parent
9b9ea55797
commit
0bc84606cc
1 changed files with 1 additions and 0 deletions
|
@ -33,6 +33,7 @@ type Layer interface {
|
||||||
// LayerService.Resume.
|
// LayerService.Resume.
|
||||||
type LayerUpload interface {
|
type LayerUpload interface {
|
||||||
io.WriteSeeker
|
io.WriteSeeker
|
||||||
|
io.ReaderFrom
|
||||||
io.Closer
|
io.Closer
|
||||||
|
|
||||||
// Name of the repository under which the layer will be linked.
|
// Name of the repository under which the layer will be linked.
|
||||||
|
|
Loading…
Reference in a new issue