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

10x speedup #7

Merged
merged 1 commit into from
Dec 18, 2023
Merged

10x speedup #7

merged 1 commit into from
Dec 18, 2023

Conversation

cbizon
Copy link
Contributor

@cbizon cbizon commented Dec 18, 2023

Rather than returning a reasoner pydantic response, we're just going to construct the json and send it back. This gets us from about 11 seconds to 1.

There is also a smaller but noticable speedup from using orjson (and ORJSONResponse) instead of json (and JSONResponse).

@cbizon cbizon merged commit 9f97ba3 into main Dec 18, 2023
1 check failed
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