Could you please add ORJSON support for high performance? #665
accredited-unicorn
started this conversation in
Show and tell
Replies: 1 comment
-
We already have PR that adds optional support for customizable JSON library: #650 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm suggesting that Ariadne borrow a snippet of performance enhancing code from FastAPI...
ORJSON has been benchmarked to reduce framework overhead, and it has been benchmarked to increase throughout on batches of multiple queries. Replacing the default
json
library withorjson
resulted in multiple query throughput that beat Uvicorn, Starlette, and vanilla FastAPI.The snipped above should also enhance Ariadne's performance in a meaningful and measurable way.
Beta Was this translation helpful? Give feedback.
All reactions