Workhorse: re-use *gzip.Writer instances
This is a minor optimization for Git HTTP traffic. About half of p99 allocations in GitLab.com production Git HTTP traffic is for flate.NewWriter, which is preventable if we re-use the gzip writers. This commit adds a sync.Pool for those writers.
Showing
Please register or sign in to comment