You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the http body is closed, io.Copy(ioutil.Discard, ...) needlessly allocates a new
buffer every time.
This seems pretty minor but the effect is considerable.
My most recent tests bump from 3000qps -> 3800qps after this change.
Since this is just discard, I don't *think* there a race stomping the underlying data
since each call to read is using a distinct slice.