-
Notifications
You must be signed in to change notification settings - Fork 3
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
Rewrite SplitLocale to not allocate #23
Conversation
2854660
to
14efa83
Compare
Looks like the workflows need to be updated to run on Go 1.19. |
I can get that fixed later today. |
Thanks for the PR, this does simplify the code and makes it easier to read 👍
I don't think that's true, since you're using
Since graph pruning was introduced in Go 1.17 and we now rely on
At least, removing Go 1.17 from the pipeline should be enough to run the tests. |
go.mod
Outdated
@@ -1,6 +1,6 @@ | |||
module github.com/jeandeaual/go-locale | |||
|
|||
go 1.14 | |||
go 1.19 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
go 1.19 | |
go 1.18 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, thanks for your contribution!
I'm happy to help. You might get more contributions for the team given that we are planning on using your package in Fyne going forward :) |
This improves performance and makes the code more readable. It also updates to use Go 1.19 as the base in
go.mod
so we get pruned module graphs (old Go compilers can still compile the code).Benchstat: