Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

optimisation: don't copy report stream unnecessarily #2736

Merged
merged 1 commit into from
Jul 24, 2017

Conversation

rade
Copy link
Member

@rade rade commented Jul 21, 2017

We don't need to copy from the reader when publishing to just one destination.

We don't need to copy from the reader when publishing to just one
destination.
buf, err := ioutil.ReadAll(r)
if err != nil {
return err
}

c.mtx.Lock()
defer c.mtx.Unlock()

This comment was marked as abuse.

This comment was marked as abuse.

This comment was marked as abuse.

@rade rade requested a review from 2opremio July 21, 2017 17:03
buf, err := ioutil.ReadAll(r)
if err != nil {
return err
}

c.mtx.Lock()
defer c.mtx.Unlock()

This comment was marked as abuse.

@rade rade merged commit 09b3026 into master Jul 24, 2017
@dlespiau dlespiau deleted the optimise-single-client-publish branch November 2, 2017 12:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants