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

Use easyjson to improve JSON marshal/unmarshal performance #89

Open
2 tasks
jimeh opened this issue Apr 29, 2021 · 0 comments
Open
2 tasks

Use easyjson to improve JSON marshal/unmarshal performance #89

jimeh opened this issue Apr 29, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@jimeh
Copy link
Contributor

jimeh commented Apr 29, 2021

easyjson improves the performance of marshaling and unmarshaling JSON by
generating custom code for each of your structs. As the generated code is based
on your structs, it avoids using reflection.

  • Add easyjson, generating code via go generate for all structs which are
    used for JSON requests/responses.
  • Add CI step to ensure generated code is up to date, failing if it is not
@jimeh jimeh added the enhancement New feature or request label Apr 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant