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 djson #23

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

use djson #23

wants to merge 1 commit into from

Conversation

fujiwara
Copy link
Owner

github.com/a8m/djson

DJSON is a JSON decoder for Go that is 2~ to 3~ times faster than the standard encoding/json and the existing solutions, when dealing with arbitrary JSON payload.

if err != nil {
data = make(map[string]interface{}, 1)
Copy link

Choose a reason for hiding this comment

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

Copy link
Owner Author

Choose a reason for hiding this comment

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

Thanks for a suggestion.
I compared with AllocString() and djson.DecodeObject().
CPU usage is about 30% lower when using djson.DecodeObject().

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.

2 participants