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 map encoding to prep for Go version bump #473

Merged

Conversation

fxamacker
Copy link
Owner

Refactor old map encoding code to prep for Go version bump and reduce duplicate code required by upcoming PRs.

@dinhxuanvu opened issue and PR that shows impressive results 🎉 (both speedup & memory reduction!):

This PR refactors old code related to map encoding, so new PRs like #468 won't require as much duplicate code.

This refactor helps reduce duplicate code in
upcoming PRs.
@fxamacker
Copy link
Owner Author

@dinhxuanvu @x448 Please take a look and let me know if you approve or if changes are needed.

I'd like to merge this PR so PR #468 can take advantage of this and get merged too. Thanks!

Copy link
Contributor

@x448 x448 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM and this is shorter than I expected.

nit: comments for type encodeKeyValueFunc can be clearer (maybe it's just me)

Copy link
Contributor

@dinhxuanvu dinhxuanvu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@fxamacker fxamacker merged commit e5eaf7a into master Jan 23, 2024
17 checks passed
@fxamacker fxamacker deleted the fxamacker/refactor-map-encode-to-prepare-for-go-verion-bump branch September 7, 2024 20:15
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.

3 participants