Skip to content

feat: Use uvicorn[standard] to get faster asyncio loop implementation#21636

Open
Leletir wants to merge 1 commit intoPrefectHQ:mainfrom
Leletir:feat/add-uvicorn-standard
Open

feat: Use uvicorn[standard] to get faster asyncio loop implementation#21636
Leletir wants to merge 1 commit intoPrefectHQ:mainfrom
Leletir:feat/add-uvicorn-standard

Conversation

@Leletir
Copy link
Copy Markdown

@Leletir Leletir commented Apr 21, 2026

Summary

  • This PR adds uvicorn[standard] as a dependency

  • It brings:

    • uvloop — Fast, drop-in replacement of the built-in asyncio event loop. When uvloop is installed, Uvicorn will use it by default.
    • httptools — Python binding for the Node.js HTTP parser. When httptools is installed, Uvicorn will use it by default for HTTP/1.1 parsing.

=> Those 2 dependencies improve the performance of async code by a lot see uvloop documentation as mentioned in the FastAPI documentation

Let me know if you need more informations

@codspeed-hq
Copy link
Copy Markdown

codspeed-hq bot commented Apr 21, 2026

Merging this PR will not alter performance

✅ 2 untouched benchmarks


Comparing Leletir:feat/add-uvicorn-standard (a14d1d0) with main (6f89b6d)

Open in CodSpeed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant