diff options
author | Aliaksandr Valialkin <valyala@gmail.com> | 2016-10-13 14:57:35 +0300 |
---|---|---|
committer | Aliaksandr Valialkin <valyala@gmail.com> | 2016-10-13 14:57:35 +0300 |
commit | b131f05f501f618ae22a04c823f900482adc5165 (patch) | |
tree | dd723ec4b04488e766a40896e17e22d36f6eeb9b /compress.go | |
parent | Use standard compress/* packages instead of github.com/klauspost/compress/* (diff) | |
download | fasthttp-b131f05f501f618ae22a04c823f900482adc5165.tar.gz fasthttp-b131f05f501f618ae22a04c823f900482adc5165.tar.bz2 fasthttp-b131f05f501f618ae22a04c823f900482adc5165.zip |
Revert "Use standard compress/* packages instead of github.com/klauspost/compress/*"
According to @klauspost, his packages are still faster than the standard packages.
See https://github.com/valyala/fasthttp/commit/a98191f43560ea2ddbbf848c1c727daeed2e39ae#commitcomment-19409416
for details.
This reverts commit a98191f43560ea2ddbbf848c1c727daeed2e39ae.
Diffstat (limited to 'compress.go')
-rw-r--r-- | compress.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/compress.go b/compress.go index 8747de1..c3b81cf 100644 --- a/compress.go +++ b/compress.go @@ -1,13 +1,14 @@ package fasthttp import ( - "compress/flate" - "compress/gzip" - "compress/zlib" "fmt" "io" "os" "sync" + + "github.com/klauspost/compress/flate" + "github.com/klauspost/compress/gzip" + "github.com/klauspost/compress/zlib" ) // Supported compression levels. |