liip / LiipFunctionalTestBundle

Some helper classes for writing functional tests in Symfony

Home Page:http://liip.ch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Performance problem with container.dumper.inline_class_loader

pawel-winiecki opened this issue · 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 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?

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.

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.