-
-
Notifications
You must be signed in to change notification settings - Fork 209
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
compression: check level errors ahead of time
We now no longer obey gzip compression level 0, which is "no compression" but just adds compression headers. Instead, we conert that to gzip.DefaultCompresion. We now check level errors once before the sync.Pool's, rather than inside the sync.Pool function. Also makes the compress benchmark better.
- Loading branch information
Showing
2 changed files
with
45 additions
and
42 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