Skip to content

⚡ perf(web-api): offload CPU-bound handlers to blocking thread pool#1495

Merged
harehare merged 2 commits intomainfrom
perf/web-api-spawn-blocking
Mar 25, 2026
Merged

⚡ perf(web-api): offload CPU-bound handlers to blocking thread pool#1495
harehare merged 2 commits intomainfrom
perf/web-api-spawn-blocking

Conversation

@harehare
Copy link
Copy Markdown
Owner

Use tokio::task::spawn_blocking for query, check, and format handlers to prevent blocking the async runtime during parsing and execution. Also remove unnecessary request clones in handlers.

Use tokio::task::spawn_blocking for query, check, and format handlers
to prevent blocking the async runtime during parsing and execution.
Also remove unnecessary request clones in handlers.
@harehare harehare merged commit c01c637 into main Mar 25, 2026
4 checks passed
@harehare harehare deleted the perf/web-api-spawn-blocking branch March 25, 2026 14:08
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