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

Simplify string reply check #457

Merged
merged 1 commit into from
Feb 11, 2020
Merged

Simplify string reply check #457

merged 1 commit into from
Feb 11, 2020

Conversation

cuonglm
Copy link
Contributor

@cuonglm cuonglm commented Feb 11, 2020

The go compiler is smart enough to optimize string([]byte) conversion.

name       old time/op    new time/op    delta
DoPing-12    29.2µs ± 3%    29.3µs ± 4%   ~     (p=0.730 n=9+9)

name       old alloc/op   new alloc/op   delta
DoPing-12     0.00B          0.00B        ~     (all equal)

name       old allocs/op  new allocs/op  delta
DoPing-12      0.00           0.00        ~     (all equal)

The go compiler is smart enough to optimize string([]byte) conversion.

name       old time/op    new time/op    delta
DoPing-12    29.2µs ± 3%    29.3µs ± 4%   ~     (p=0.730 n=9+9)

name       old alloc/op   new alloc/op   delta
DoPing-12     0.00B          0.00B        ~     (all equal)

name       old allocs/op  new allocs/op  delta
DoPing-12      0.00           0.00        ~     (all equal)
@stevenh stevenh merged commit 7ac8ae1 into gomodule:master Feb 11, 2020
@stevenh
Copy link
Collaborator

stevenh commented Feb 11, 2020

Thanks for the PR

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.

2 participants