Summarized my findings and opened an issue. Hoping to help make #LiteStar just a little bit better.
github.com/litestar-org...
#Python #Backend #WebDev
github.com
Enhancement: Optimize dependency resolution overhead (TaskGroup bottleneck) · Issue #4563 · litestar-org/litestar
Summary Benchmarks show a significant performance degradation in dependency resolution when increasing the number of flat dependencies. Specifically, moving from 1 to 2 dependencies results in a sh...
Is #LiteStar faster than #FastAPI? Benchmarks say yes, but look at Dependency Injection. 📉
Adding just 2 flat dependencies significantly degrades the throughput. I dug into the source to find why.
Thread: TaskGroups, Kahn's algorithm & performance trade-offs. 🧵
#Python #Backend #WebDev