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

Utilised json.Unmarshal instead of json.NewDecoder #206

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

Conversation

moredure
Copy link
Contributor

@moredure moredure commented Apr 3, 2022

Truth be told, json decoder allocates more, it allocates decoder itself and also have logic/buffers related to stream processing which results in slower single JSON record decoding speed. Also reusing responses might be efficient since all responses quite equal in size here.

@coveralls
Copy link

coveralls commented Apr 3, 2022

Coverage Status

Coverage remained the same at 100.0% when pulling 693555c on moredure:patch-11 into a09d4b5 on sideshow:master.

@moredure moredure closed this Apr 3, 2022
@moredure moredure deleted the patch-11 branch April 3, 2022 09:19
@moredure moredure restored the patch-11 branch April 3, 2022 09:22
@moredure moredure reopened this Apr 3, 2022
@moredure moredure force-pushed the patch-11 branch 3 times, most recently from 242c5e5 to 45e1b36 Compare April 3, 2022 09:36
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.

None yet

2 participants