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

Comma() is 2.5 faster now #102

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

kaatinga
Copy link

@kaatinga kaatinga commented Mar 20, 2022

Hi there!

Decided to leetcode Comma(). The result is in this PR. Managed to get rid of 4 allocations, removed 2 dependencies and reduced the execution time.

goos: darwin
goarch: arm64
pkg: github.com/kaatinga/krendel
BenchmarkComma
BenchmarkComma-8          	 5709186	       207.5 ns/op	      50 B/op	       8 allocs/op
BenchmarkInt64_String
BenchmarkInt64_String-8   	13717701	        86.55 ns/op	      64 B/op	       4 allocs/op
PASS

@dolmen dolmen mentioned this pull request Mar 20, 2024
comma.go Show resolved Hide resolved
done!

Co-authored-by: Olivier Mengué <[email protected]>
@kaatinga kaatinga requested a review from dolmen March 23, 2024 22:49
@dolmen
Copy link

dolmen commented Mar 25, 2024

I think that #120 should be merged first. Not because I wrote it, but because it adds automated tests that will give more confidence in the impact of the changes here.

@kaatinga
Copy link
Author

kaatinga commented Mar 25, 2024

sure @dolmen, it waited 2 years and can wait a bit longer. Hope your PR will be merged soon :)

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