Closed
Closed
Copy link
Description
Symfony version(s) affected: 4.1.8, confirmed by others 3.4.19 also affected
Description
We at sulu did found a huge performance difference when building the cache after upgrading from 4.1.7 to 4.1.8.
It ends up in max_execution_timeout in some cases.
How to reproduce
git clone git@github.com:sulu/sulu-minimal.git
cd sulu-minimal
git checkout develop
# install dependencies with symfony 4.1.8
composer update
time bin/adminconsole cache:clear
time bin/websiteconsole cache:clear
# vs before 4.1.7
composer require symfony/dependency-injection:4.1.7
time bin/adminconsole cache:clear
time bin/websiteconsole cache:clear
Command | Dependency Injection 4.1.7 | Dependency Injection 4.1.8 |
---|---|---|
time bin/adminconsole cache:clear |
5,68s user 1,06s system 93% cpu 7,242 total |
26,61s user 1,14s system 99% cpu 27,885 total |
time bin/websiteconsole cache:clear |
4,94s user 0,82s system 98% cpu 5,843 total |
62,15s user 0,97s system 99% cpu 1:03,26 total |
Possible solution
Not sure as there seems to be many changes in the dependency-injection component which could cause the issue symfony/dependency-injection@v4.1.7...v4.1.8.
This seems to be the commit where the container build performance changed:
symfony/dependency-injection@5ec6098
Should be this PRs: #29247