Skip to content

yasushi-saito/zlibng

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GoDoc

Cgo wrapper for zlib-ng (https://github.com/zlib-ng/zlib-ng). It currently supports only {linux,darwin}/amd64.

  • The reader implements io.ReadCloser, the writer implements io.WriteCloser.

  • Supports both gzip and flate formats.

  • Supports multi-part archive (concatenated gzip/flate file).

  • Supports reading and writing the gzip header.

Benchmark results:

CPU: Intel(R) Xeon(R) CPU E3-1505M v6 @ 3.00GHz

goos: linux
goarch: amd64
pkg: github.com/yasushi-saito/zlibng
BenchmarkInflateStandardGzip-8    	     100	  16481110 ns/op
BenchmarkInflateKlauspostGzip-8   	     100	  19946956 ns/op
BenchmarkInflateZlibNG-8          	     200	   5908574 ns/op
BenchmarkInflateCGZip-8           	     200	   7771587 ns/op
BenchmarkDeflateStandardGzip-8    	       1	10572484457 ns/op
BenchmarkDeflateKlauspostGzip-8   	       1	2665946548 ns/op
BenchmarkDeflateZlibNG-8          	       1	5886680851 ns/op
BenchmarkDeflateCGZip-8           	       1	5069861793 ns/op

Installation

go get github.com/yasushi-saito/zlibng

Incorporating upstream changes

cd /tmp/
git clone https://github.com/zlib-ng/zlib-ng.git
git clone git@github.com:yasushi-saito/zlibng.git
cd zlibng
./patch.py ../zlib-ng
git commit -a

Releases

No releases published

Packages

No packages published