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

feature: use sonic library to replace encoding/json #6

Closed
wants to merge 1 commit into from

Conversation

claymega
Copy link
Collaborator

@claymega claymega commented Nov 7, 2024

Analyzing the time consumed in get_payload, we see that it is concentrated in json-decode, so we are going to optimize json-decode.

  • use sonic library to replace encoding/json;

Be careful: sonic(encoding/json) is used not only in get_payload, but also in any other place where json parsing is used.

Code modification actually happen in replace encoding/json with sonic

@claymega
Copy link
Collaborator Author

claymega commented Nov 7, 2024

The json-decode time did not reach the target time consumption, which only shows that json-decode cannot be placed in the sequencing process. so close the PR

@claymega claymega closed this Nov 7, 2024
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.

1 participant