-
Notifications
You must be signed in to change notification settings - Fork 544
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Buffer the output of gzip.Writer to avoid stalling (#923)
Use a bufio.Writer to buffer gzipped output while we are reading from the other end of an io.Pipe to allow gzip to keep compressing its input. A 64K buffer was chosen for its humor value. The default size of bufio.Writer was too small when testing against a local registry. Increasing beyond 64K didn't seem to have any noticeable effect. It might make sense to make this smaller, but I don't see a reason to worry about it ATM.
- Loading branch information
1 parent
76199f1
commit c3da6bf
Showing
2 changed files
with
38 additions
and
3 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