aboutsummaryrefslogtreecommitdiff
path: root/fs.go
diff options
context:
space:
mode:
authorGravatar Aliaksandr Valialkin <valyala@gmail.com> 2016-10-13 14:57:35 +0300
committerGravatar Aliaksandr Valialkin <valyala@gmail.com> 2016-10-13 14:57:35 +0300
commitb131f05f501f618ae22a04c823f900482adc5165 (patch)
treedd723ec4b04488e766a40896e17e22d36f6eeb9b /fs.go
parentUse standard compress/* packages instead of github.com/klauspost/compress/* (diff)
downloadfasthttp-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.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs.go b/fs.go
index dc79dfc..c36073d 100644
--- a/fs.go
+++ b/fs.go
@@ -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