How I made dependency injection in Python 130× faster: from reflection to compiling the graph
From ~53 µs/op to 0.40: caching the plan, cutting a check that can't fire, and compiling the dependency graph — a number at every step.
Jun 18, 20268 min read331


