Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
[DI] dump factory files as classes #36193
This PR is a performance improvement when using
Once upon a time, we advised setting
This PR fixes the issue by generating many files again. But instead of generating the inline code within each file, we now wrap this code inside a class. Then we list this class for preloading.
This way, we have the best of both worlds: a
This should also fix a memory leak that happens when factory files contain closures.