mirror of
https://github.com/containers/podman
synced 2024-10-18 08:13:32 +00:00
Merge pull request #20695 from mtrmac/pgzip-update-3.0.1-rhel
[v3.0.1-rhel] RHEL-17147: Update to github.com/klauspost/pgzip@v1.2.6
This commit is contained in:
commit
7dbc120299
1
go.mod
1
go.mod
|
@ -36,6 +36,7 @@ require (
|
|||
github.com/hashicorp/go-multierror v1.1.0
|
||||
github.com/hpcloud/tail v1.0.0
|
||||
github.com/json-iterator/go v1.1.12
|
||||
github.com/klauspost/pgzip v1.2.6 // indirect
|
||||
github.com/kr/text v0.2.0 // indirect
|
||||
github.com/moby/term v0.0.0-20201110203204-bea5bbe245bf
|
||||
github.com/mrunalp/fileutils v0.0.0-20171103030105-7d4729fb3618
|
||||
|
|
3
go.sum
3
go.sum
|
@ -352,8 +352,9 @@ github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+o
|
|||
github.com/klauspost/compress v1.11.5/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs=
|
||||
github.com/klauspost/compress v1.11.7 h1:0hzRabrMN4tSTvMfnL3SCv1ZGeAP23ynzodBgaHeMeg=
|
||||
github.com/klauspost/compress v1.11.7/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs=
|
||||
github.com/klauspost/pgzip v1.2.5 h1:qnWYvvKqedOF2ulHpMG72XQol4ILEJ8k2wwRl/Km8oE=
|
||||
github.com/klauspost/pgzip v1.2.5/go.mod h1:Ch1tH69qFZu15pkjo5kYi6mth2Zzwzt50oCQKQE9RUs=
|
||||
github.com/klauspost/pgzip v1.2.6 h1:8RXeL5crjEUFnR2/Sn6GJNWtSQ3Dk8pq4CL3jvdDyjU=
|
||||
github.com/klauspost/pgzip v1.2.6/go.mod h1:Ch1tH69qFZu15pkjo5kYi6mth2Zzwzt50oCQKQE9RUs=
|
||||
github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
|
||||
github.com/konsorten/go-windows-terminal-sequences v1.0.2/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
|
||||
github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
|
||||
|
|
|
@ -337,7 +337,7 @@ var _ = Describe("Podman images", func() {
|
|||
}
|
||||
|
||||
// Search with a fqdn
|
||||
reports, err = images.Search(bt.conn, "quay.io/libpod/alpine_nginx", nil)
|
||||
reports, err = images.Search(bt.conn, "quay.io/podman/stable", nil)
|
||||
Expect(len(reports)).To(BeNumerically(">=", 1))
|
||||
})
|
||||
|
||||
|
|
|
@ -100,11 +100,11 @@ registries = ['{{.Host}}:{{.Port}}']`
|
|||
})
|
||||
|
||||
It("podman search image with description", func() {
|
||||
search := podmanTest.Podman([]string{"search", "quay.io/libpod/whalesay"})
|
||||
search := podmanTest.Podman([]string{"search", "quay.io/podman/stable"})
|
||||
search.WaitWithDefaultTimeout()
|
||||
Expect(search.ExitCode()).To(Equal(0))
|
||||
output := string(search.Out.Contents())
|
||||
match, _ := regexp.MatchString(`(?m)^quay.io\s+quay.io/libpod/whalesay\s+Static image used for automated testing.+$`, output)
|
||||
match, _ := regexp.MatchString(`(?m)quay.io/podman/stable\s+.*PODMAN logo`, output)
|
||||
Expect(match).To(BeTrue())
|
||||
})
|
||||
|
||||
|
|
4
vendor/github.com/klauspost/pgzip/.travis.yml
generated
vendored
4
vendor/github.com/klauspost/pgzip/.travis.yml
generated
vendored
|
@ -1,3 +1,7 @@
|
|||
|
||||
arch:
|
||||
- amd64
|
||||
- ppc64le
|
||||
language: go
|
||||
|
||||
os:
|
||||
|
|
3
vendor/github.com/klauspost/pgzip/LICENSE
generated
vendored
3
vendor/github.com/klauspost/pgzip/LICENSE
generated
vendored
|
@ -1,4 +1,4 @@
|
|||
MIT License
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2014 Klaus Post
|
||||
|
||||
|
@ -19,3 +19,4 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
|
||||
|
|
13
vendor/github.com/klauspost/pgzip/README.md
generated
vendored
13
vendor/github.com/klauspost/pgzip/README.md
generated
vendored
|
@ -104,13 +104,12 @@ Content is [Matt Mahoneys 10GB corpus](http://mattmahoney.net/dc/10gb.html). Com
|
|||
|
||||
Compressor | MB/sec | speedup | size | size overhead (lower=better)
|
||||
------------|----------|---------|------|---------
|
||||
[gzip](http://golang.org/pkg/compress/gzip) (golang) | 15.44MB/s (1 thread) | 1.0x | 4781329307 | 0%
|
||||
[gzip](http://github.com/klauspost/compress/gzip) (klauspost) | 135.04MB/s (1 thread) | 8.74x | 4894858258 | +2.37%
|
||||
[pgzip](https://github.com/klauspost/pgzip) (klauspost) | 1573.23MB/s| 101.9x | 4902285651 | +2.53%
|
||||
[bgzf](https://godoc.org/github.com/biogo/hts/bgzf) (biogo) | 361.40MB/s | 23.4x | 4869686090 | +1.85%
|
||||
[pargzip](https://godoc.org/github.com/golang/build/pargzip) (builder) | 306.01MB/s | 19.8x | 4786890417 | +0.12%
|
||||
[gzip](http://golang.org/pkg/compress/gzip) (golang) | 16.91MB/s (1 thread) | 1.0x | 4781329307 | 0%
|
||||
[gzip](http://github.com/klauspost/compress/gzip) (klauspost) | 127.10MB/s (1 thread) | 7.52x | 4885366806 | +2.17%
|
||||
[pgzip](https://github.com/klauspost/pgzip) (klauspost) | 2085.35MB/s| 123.34x | 4886132566 | +2.19%
|
||||
[pargzip](https://godoc.org/github.com/golang/build/pargzip) (builder) | 334.04MB/s | 19.76x | 4786890417 | +0.12%
|
||||
|
||||
pgzip also contains a [linear time compression](https://github.com/klauspost/compress#linear-time-compression-huffman-only) mode, that will allow compression at ~250MB per core per second, independent of the content.
|
||||
pgzip also contains a [huffman only compression](https://github.com/klauspost/compress#linear-time-compression-huffman-only) mode, that will allow compression at ~450MB per core per second, largely independent of the content.
|
||||
|
||||
See the [complete sheet](https://docs.google.com/spreadsheets/d/1nuNE2nPfuINCZJRMt6wFWhKpToF95I47XjSsc-1rbPQ/edit?usp=sharing) for different content types and compression settings.
|
||||
|
||||
|
@ -123,7 +122,7 @@ In the example above, the numbers are as follows on a 4 CPU machine:
|
|||
Decompressor | Time | Speedup
|
||||
-------------|------|--------
|
||||
[gzip](http://golang.org/pkg/compress/gzip) (golang) | 1m28.85s | 0%
|
||||
[pgzip](https://github.com/klauspost/pgzip) (golang) | 43.48s | 104%
|
||||
[pgzip](https://github.com/klauspost/pgzip) (klauspost) | 43.48s | 104%
|
||||
|
||||
But wait, since gzip decompression is inherently singlethreaded (aside from CRC calculation) how can it be more than 100% faster? Because pgzip due to its design also acts as a buffer. When using unbuffered gzip, you are also waiting for io when you are decompressing. If the gzip decoder can keep up, it will always have data ready for your reader, and you will not be waiting for input to the gzip decompressor to complete.
|
||||
|
||||
|
|
13
vendor/github.com/klauspost/pgzip/gunzip.go
generated
vendored
13
vendor/github.com/klauspost/pgzip/gunzip.go
generated
vendored
|
@ -513,6 +513,19 @@ func (z *Reader) Read(p []byte) (n int, err error) {
|
|||
|
||||
func (z *Reader) WriteTo(w io.Writer) (n int64, err error) {
|
||||
total := int64(0)
|
||||
avail := z.current[z.roff:]
|
||||
if len(avail) != 0 {
|
||||
n, err := w.Write(avail)
|
||||
if n != len(avail) {
|
||||
return total, io.ErrShortWrite
|
||||
}
|
||||
total += int64(n)
|
||||
if err != nil {
|
||||
return total, err
|
||||
}
|
||||
z.blockPool <- z.current
|
||||
z.current = nil
|
||||
}
|
||||
for {
|
||||
if z.err != nil {
|
||||
return total, z.err
|
||||
|
|
2
vendor/modules.txt
vendored
2
vendor/modules.txt
vendored
|
@ -359,7 +359,7 @@ github.com/klauspost/compress/huff0
|
|||
github.com/klauspost/compress/snappy
|
||||
github.com/klauspost/compress/zstd
|
||||
github.com/klauspost/compress/zstd/internal/xxhash
|
||||
# github.com/klauspost/pgzip v1.2.5
|
||||
# github.com/klauspost/pgzip v1.2.6
|
||||
github.com/klauspost/pgzip
|
||||
# github.com/lunixbochs/vtclean v0.0.0-20180621232353-2d01aacdc34a
|
||||
github.com/lunixbochs/vtclean
|
||||
|
|
Loading…
Reference in a new issue