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 /fs.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 'fs.go')
-rw-r--r-- | fs.go | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -2,7 +2,6 @@ package fasthttp import ( "bytes" - "compress/gzip" "errors" "fmt" "html" @@ -16,6 +15,8 @@ import ( "strings" "sync" "time" + + "github.com/klauspost/compress/gzip" ) // ServeFileBytesUncompressed returns HTTP response containing file contents |