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: try_rsgi_sync_short_circuit extracts String instead of borrowing &str #253
let proto:String = scope.getattr("proto")?.extract()?;let method:String = scope.getattr("method")?.extract()?;let path:String = scope.getattr("path")?.extract()?;
On every incoming request entering try_rsgi_sync_short_circuit, three heap Strings are allocated, even for requests that 404, 405, or fall back to async.
Fix direction:
Extract borrowed &str directly without heap allocation:
let proto = scope.getattr("proto")?.extract::<&str>()?;
...
let method = scope.getattr("method")?.extract::<&str>()?;let path = scope.getattr("path")?.extract::<&str>()?;
Activity
Merge pull request #260 from QueryaHub/issue-253-sync-short-circuit-b…
ZhuchkaTriplesix commentedon Oct 18, 2026
Resolved in PR #260