You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
perf: sync routes with path parameters cannot use try_rsgi_sync_short_circuit #254
Where: src/lib.rs:487-494 (trivial_sync check) and src/dispatch.rs:454 (route_is_trivial_sync).
Currently, trivial_sync requires handler_param_names.is_empty().
This means any sync route taking path parameters (e.g. @app.get("/items/:id") def get_item(id: int)) has trivial_sync = false and is forced onto the full async pipeline (future_into_py, Tokio worker dispatch, asyncio Future allocation, GIL acquire/release cycles).
Fix direction:
Extend the sync short-circuit path to support synchronous routes that have path parameters (and no async dependencies, no request body reading, and no rate limiting). Pass the extracted path parameters to the sync handler inline.
Activity
Merge pull request #261 from QueryaHub/issue-254-sync-path-params
ZhuchkaTriplesix commentedon Oct 18, 2026
Resolved in PR #261