1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/pkg/ioutils
Sargun Dhillon fd35494a25 Make image (layer) downloads faster by using pigz
The Golang built-in gzip library is serialized, and fairly slow
at decompressing. It also only decompresses on demand, versus
pipelining decompression.

This change switches to using the pigz external command
for gzip decompression, as opposed to using the built-in
golang one. This code is not vendored, but will be used
if it autodetected as part of the OS.

This also switches to using context, versus a manually
managed channel to manage cancellations, and synchronization.
There is a little bit of weirdness around manually having
to cancel in the error cases.

Signed-off-by: Sargun Dhillon <sargun@sargun.me>
2018-01-16 10:49:18 -08:00
..
buffer.go
buffer_test.go Improve coverage of pkg/ioutils/buffer 2017-02-28 14:11:15 +01:00
bytespipe.go
bytespipe_test.go
fswriters.go Update layer store to sync transaction files before committing 2016-08-09 11:55:17 -07:00
fswriters_test.go pkg/*: clean up a few issues 2017-03-30 16:50:46 +03:00
readers.go Make image (layer) downloads faster by using pigz 2018-01-16 10:49:18 -08:00
readers_test.go Fix golint errors. 2017-08-18 14:23:44 -04:00
temp_unix.go
temp_windows.go Remove redundant build-tags 2017-12-18 17:41:53 +01:00
writeflusher.go
writers.go
writers_test.go