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

Reduce allocations #28

Merged
merged 1 commit into from
Dec 23, 2014
Merged

Reduce allocations #28

merged 1 commit into from
Dec 23, 2014

Conversation

ryanslade
Copy link
Contributor

No description provided.

@ryanslade
Copy link
Contributor Author

I made the changes anyway in case you decide it's worth depending on Go 1.3 later.

@tarndt
Copy link

tarndt commented Nov 24, 2014

@bradfitz Now that Go 1.3 has been out for 6 months are you willing to consider moving forward with this PR?

@bradfitz
Copy link
Contributor

bradfitz commented Dec 6, 2014

Squash it into one commit and I'll reconsider it. It's too distracting to read as it is.

@ryanslade
Copy link
Contributor Author

@tarndt Thanks for reminding me about this.

@bradfitz Squashed into one commit.

@tarndt
Copy link

tarndt commented Dec 12, 2014

@ryanslade No problem!
@bradfitz ping

@bradfitz
Copy link
Contributor

Looks good. Please re-squash.

Hey @adg, should we move this to Gerrit too?

Store temporary buffers in a sync.Pool.

Create one httpGetter per peer when Set() is called so we don't
allocate a new one on each call PickPeer().
@ryanslade
Copy link
Contributor Author

@bradfitz Done.

bradfitz added a commit that referenced this pull request Dec 23, 2014
@bradfitz bradfitz merged commit 86ced4a into golang:master Dec 23, 2014
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