-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix compress writer * add pool buffer Before we just decorate the given writer writer, err = gzip.NewWriterLevel(w.Writer, w.compressionLevel) but the gzip/zlibWriter call writer.Write more than once in order to compress input Now we use a buffer with gzip/zlibWriter and send once the compressed data to the given writer PS: it seems gzip/zlibWriter write compressed data when gzip/zlibWriter.Close() was called
- Loading branch information
1 parent
85d2b76
commit d0ca496
Showing
2 changed files
with
30 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters