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
uvicorn got eagerly imported via sse-starlette #1770
I noticed that you intend to lazy-import uvicorn because it's only used for HTTP/SSE transports. However, I found that it's still being imported immediately, as sse-starlette imports it eagerly, and sse-starlette is imported here:
Sad to see #1771 only trims ~50 ms—even though import sse_starlette takes 400 ms, it turns out uvicorn itself is pretty light. Feel free to close if you're fine leaving things as-is.
changed the title [-]`uvicorn` got eagerly imported because of `sse-starlette`[/-][+]`uvicorn` got eagerly imported via `sse-starlette`[/+]on Dec 11, 2025
Activity
CNSeniorious000 commentedon Dec 11, 2025
Sad to see #1771 only trims ~50 ms—even though
import sse_starlettetakes 400 ms, it turns outuvicornitself is pretty light. Feel free to close if you're fine leaving things as-is.[-]`uvicorn` got eagerly imported because of `sse-starlette`[/-][+]`uvicorn` got eagerly imported via `sse-starlette`[/+]maxisbey commentedon Dec 11, 2025
Yea will leave as is for now :)