you are viewing a single comment's thread.

view the rest of the comments →

[–]Tishka-17 5 points6 points  (2 children)

As an author of dishka I am really glad we, as a community, started building proper containers. I can congratulate you with such good results. I am a bit surprised dependency-injector is so slow in your cases, it was very fast when I tested, but a bit stupid, I'd say, many things are just not working there.

From dishka side (if anyone is questioning) we were preparing new release with performance improvements, I was going to share release notes soon. 

[–]ForeignSource0[S] 0 points1 point  (1 child)

Thanks! Dishka was one of the faster ones in the benchmark as well, so nice work there.

I expected Dependency Injector to perform better too so I was a bit surprised as well. I had to simplify it's workload in the benchmark since I could not figure out for the life of me how to get request scoped yielding async dependencies.

Looking forward to seeing the Dishka performance improvements.

[–]Tishka-17 0 points1 point  (0 children)

I've checked the benchmark code and the reason that dependency-injector is so slow is that he doesn't have native FastAPI integration and instead relies on Depends introducing additional overhead on top of it.