Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Performance issue in cache clear / warmup with dependency-injection 4.1.8 and 3.4.19 #29336

Copy link
Copy link
Closed
@alexander-schranz

Description

@alexander-schranz
Issue body actions

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.