LiipFunctionalTestBundle icon indicating copy to clipboard operation
LiipFunctionalTestBundle copied to clipboard

Performance problem with container.dumper.inline_class_loader

Open pawel-winiecki opened this issue 6 years ago • 3 comments

I'v just migrated a project from Symfony 3.4 to 4.2. My test suite executed 5-6x longer. After investigation I discovered that parameter container.dumper.inline_class_loader with value true is the reason.

It's now a part of Flex recipe for FrameworkBundle: https://github.com/symfony/recipes/blob/master/symfony/framework-bundle/4.2/src/Kernel.php#L31

I think that it's worth consider to add information about that to documentation.

pawel-winiecki avatar Jan 18 '19 11:01 pawel-winiecki

@pawel-winiecki I'm sorry but I don't understand, can you please explain the link between container.dumper.inline_class_loader and this bundle? What would you want to see in the documentation?

alexislefebvre avatar Jan 18 '19 14:01 alexislefebvre

I'm subscribing to this issue as I'm observing similar results in substantially longer test times between 3.4 & 4.2. Test logs show far more entries with far more time spent in doctrine:debug entries.

truckee avatar Jan 25 '19 14:01 truckee

I've noticed a big performance drop when upgrading from Symfony 4.3 to 4.4. I'm unsure if it's related to this issue though. The main problem is a big increase in the memory usage of my tests. See symfony/symfony#35164 for more info.

ndench avatar Jan 20 '20 01:01 ndench