Reposted by Arjun MehtaMaxim Sakhno @maxim-sakhno.bsky.social · 12/02/2026Testing #FastAPI vs #LiteStar with nested empty deps (0-5 levels). Both show smooth perf degradation, unlike LiteStar's flat deps with TaskGroup. Still, 5 deps = 28% drop for LiteStar — DI overhead is significant even when deps do nothing. #Python 042 4
Arjun Mehta @pachanpresent.bsky.social · 03/02/2026I haven't known about such a big resource consumption of DI 010 1
Reposted by Arjun MehtaMaxim Sakhno @maxim-sakhno.bsky.social · 28/01/2026Is #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 362 6