• Jacob Vosmaer's avatar
    Workhorse: re-use *gzip.Writer instances · a327f680
    Jacob Vosmaer authored
    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.
    a327f680
info-refs.go 2.98 KB