1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/pkg/archive
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
..
testdata
archive.go Make image (layer) downloads faster by using pigz 2018-01-16 10:49:18 -08:00
archive_linux.go [project] change syscall to /x/sys/unix|windows 2017-07-11 08:00:32 -04:00
archive_linux_test.go use testify to check error for test unit test of archive package 2017-08-09 10:27:01 +08:00
archive_other.go
archive_test.go Make image (layer) downloads faster by using pigz 2018-01-16 10:49:18 -08:00
archive_unix.go Use Mkdev, Major and Minor functions from golang.org/x/sys/unix 2017-10-19 08:28:38 +02:00
archive_unix_test.go Remove solaris files 2017-10-24 15:39:34 -04:00
archive_windows.go Remove redundant build-tags 2017-12-18 17:41:53 +01:00
archive_windows_test.go Remove unused functions from archive. 2017-06-07 11:44:33 -04:00
changes.go archive: add ChownOpts support to TarWithOptions 2017-08-23 20:52:29 +02:00
changes_linux.go Use Mkdev, Major and Minor functions from golang.org/x/sys/unix 2017-10-19 08:28:38 +02:00
changes_other.go
changes_posix_test.go Remove solaris files 2017-10-24 15:39:34 -04:00
changes_test.go Remove solaris files 2017-10-24 15:39:34 -04:00
changes_unix.go Add unconvert linter 2017-08-24 15:08:31 -04:00
changes_windows.go Tidy pkg\system *stat* functions 2017-04-05 16:01:53 -07:00
copy.go Merge pull request #31993 from dccurtis/issue-31816 2017-09-19 10:54:53 -07:00
copy_unix.go
copy_unix_test.go use testify to check error for test unit test of archive package 2017-08-09 10:27:01 +08:00
copy_windows.go
diff.go Update logrus to v1.0.1 2017-07-31 13:16:46 -07:00
diff_test.go
example_changes.go Update logrus to v1.0.1 2017-07-31 13:16:46 -07:00
README.md
time_linux.go
time_unsupported.go
utils_test.go pkg/archive: remove unnecessary Archive and Reader type 2016-10-20 19:31:24 -07:00
whiteouts.go
wrap.go pkg/archive: remove unnecessary Archive and Reader type 2016-10-20 19:31:24 -07:00
wrap_test.go use testify to check error for test unit test of archive package 2017-08-09 10:27:01 +08:00

This code provides helper functions for dealing with archive files.