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

Improve JSON marshal/unmarshal performance #682

Open
malud opened this issue Jan 31, 2023 · 0 comments
Open

Improve JSON marshal/unmarshal performance #682

malud opened this issue Jan 31, 2023 · 0 comments

Comments

@malud
Copy link
Collaborator

malud commented Jan 31, 2023

We are mostly using the Go build-in package to fulfil this tasks. But there are packages out there which are faster and have less memory consumption. We have dependencies which brings them already as peer dependency. We should take a look if we could improve our json handling.

Related sections:

jwk
jwks
oidc
jwt
oauth2
(ggf cty, in ctyjson -> prüfen)
json_body ?

go mod why -m github.com/mailru/easyjson

# github.com/mailru/easyjson
github.com/avenga/couper/handler/validation
github.com/getkin/kin-openapi/openapi3
github.com/go-openapi/jsonpointer
github.com/go-openapi/swag
github.com/mailru/easyjson/jlexer

According to the readme of easyjson we could improve the throughput to more than 100 MB/s in both directions.

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

No branches or pull requests

1 participant