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
fasthtml/core.py file imports uvicorn even though it's only used for serve() calls. For AWS Lambda this causes worse cold starts than if the uvicorn was imported inline of serve().
Minimal Reproducible Example
# Your code herefromfasthtml.coreimport*uvicorn# uvicorn is imported and re-exported, even though it's only used in `serve()`
Expected behavior
I'd expect that users of other ASGI serving methods would not need to load uvicorn at runtime unless they are using it.
Environment Information
Please provide the following version information:
Describe the bug
fasthtml/core.py
file imports uvicorn even though it's only used forserve()
calls. For AWS Lambda this causes worse cold starts than if the uvicorn was imported inline ofserve()
.Minimal Reproducible Example
Expected behavior
I'd expect that users of other ASGI serving methods would not need to load uvicorn at runtime unless they are using it.
Environment Information
Please provide the following version information:
Confirmation
Please confirm the following:
Additional context
Add any other context about the problem here.
Screenshots
If applicable, add screenshots to help explain your problem.
The text was updated successfully, but these errors were encountered: