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

replace some basic uses of fmt.Sprintf() #8672

Merged
merged 1 commit into from
Jun 11, 2023

Conversation

thaJeztah
Copy link
Member

Really tiny gains here, and doesn't significantly impact readability:

BenchmarkSprintf
BenchmarkSprintf-10    11528700     91.59 ns/op   32 B/op  1 allocs/op
BenchmarkConcat
BenchmarkConcat-10    100000000     11.76 ns/op    0 B/op  0 allocs/op

Really tiny gains here, and doesn't significantly impact readability:

    BenchmarkSprintf
    BenchmarkSprintf-10    11528700     91.59 ns/op   32 B/op  1 allocs/op
    BenchmarkConcat
    BenchmarkConcat-10    100000000     11.76 ns/op    0 B/op  0 allocs/op

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
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.

4 participants