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
The Granian transport coroutine is converted to a Tokio Future via pyo3_async_runtimes::tokio::into_future(coro).
The Tokio Future is converted back into a Python asyncio Future via future_into_py(...).
This causes every frame to hop from the Python asyncio loop to the Tokio thread pool and back to the Python asyncio loop, adding task scheduling and context switching overhead on every WebSocket frame.
Fix direction:
Streamline the WebSocket async path so it awaits Granian transport coroutines without round-tripping through the Tokio executor.
Activity
Merge pull request #264 from QueryaHub/issue-257-streamline-ws-futures
ZhuchkaTriplesix commentedon Oct 18, 2026
Resolved by #264