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

Do not use a pointer for MarshalJson #15

Merged
merged 1 commit into from
Apr 22, 2016

Conversation

hectorj
Copy link
Contributor

@hectorj hectorj commented Apr 9, 2016

Using a pointer for MarshalJson is unecessary.

It caused me a small surprise where I was marshalling a struct (not its pointer), and discovered via code coverage that the easyjson generated code was not called.

I've run the tests, nothing broken, and it does not seem to change benchmark results (I get some small variances between runs so it's hard to compare, but the results stay in the same range).

@james-lawrence
Copy link
Contributor

There a reason this hasnt been merged yet?

@vstarodub
Copy link
Contributor

Sorry, guys. After playing around with benchmarks, this looks fine.

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