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

refactor: use bytes.Buffer for string concat #30

Merged
merged 1 commit into from
Aug 20, 2022

Conversation

wanglei-coder
Copy link
Contributor

@wanglei-coder wanglei-coder commented Aug 16, 2022

goos: linux
goarch: amd64
pkg: breakingbad/cmd/ssdeep
cpu: Intel(R) Core(TM) i5-9500 CPU @ 3.00GHz
BenchmarkFuzzyFilename-6                     100          30882596 ns/op            4753 B/op         13 allocs/op
BenchmarkSSdeepFuzzyFilename-6               100          30961450 ns/op            7256 B/op        157 allocs/op

the same cost time, but use less memory.

@glaslos glaslos merged commit 6092cbf into glaslos:master Aug 20, 2022
@glaslos
Copy link
Owner

glaslos commented Aug 20, 2022

Thank you for your contribution!

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.

None yet

2 participants