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

examples/chat/client.go: avoid allocating []byte{} for PingMessage #312

Merged
merged 1 commit into from
Dec 10, 2017
Merged

examples/chat/client.go: avoid allocating []byte{} for PingMessage #312

merged 1 commit into from
Dec 10, 2017

Conversation

JordanP
Copy link
Contributor

@JordanP JordanP commented Dec 9, 2017

It's useless and only gives more work to the GC.

It's useless and only gives more work to the GC.
@garyburd
Copy link
Contributor

garyburd commented Dec 9, 2017

[]byte{} does not allocate memory. I'll merge because the code is simpler.

@garyburd garyburd merged commit cdedf21 into gorilla:master Dec 10, 2017
@JordanP JordanP deleted the patch-1 branch December 10, 2017 10:05
@gorilla gorilla locked and limited conversation to collaborators Aug 29, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants