Review 11.5 Merged

85378[TASK] Reduce phpstan memory usage

Christian Kuhn CR +2 V +2 Easy +2 −0 updated 07/25/24, 12:28

Commit message

phpstan "bleeding edge config" enables a feature that
reduces memory usage significantly. We don't switch
to "bleeding edge" per se, but enable that single
toggle for now. phpstan does not do this by default
since it may be breaking for existing rules, which is
not a problem in our case.

> rm -rf .cache/phpstan/; Build/Scripts/runTests.sh -s phpstan

Before locally: 10.99 GB
After locally: 5.82 GB
Before CI: 15.15 GB
After CI: 9.49 GB

Numbers vary depending mainly on available number of CPUs:
My local machine has less CPUs than CI - we *may* tune
phpstan a bit further in this area, later.

Review

  • Code review CR +2 Done
    • Christian Kuhn +2
    • Stefan Bürk +1
  • Verified V +2 Done
    • Christian Kuhn +2
    • Stefan Bürk +1
    • core-ci +1 CI

Issues 2

Files 1

Review log 45

  1. Christian Kuhn uploaded patch set 1 07/25/24, 10:58

  2. core-ci voted on patch set 1 V +1 07/25/24, 11:14 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/62180

  3. Stefan Bürk voted on patch set 1 CR +1 V +1 07/25/24, 12:26

  4. Christian Kuhn voted on patch set 1 CR +2 V +2 07/25/24, 12:28

  5. Christian Kuhn merged patch set 2 07/25/24, 12:28