Skip to content

Instantly share code, notes, and snippets.

@joydeep-bhowmik
Last active June 15, 2024 11:24
Show Gist options
  • Save joydeep-bhowmik/ea0b4ac0305be4a154b2c0c86bb0dbc1 to your computer and use it in GitHub Desktop.
Save joydeep-bhowmik/ea0b4ac0305be4a154b2c0c86bb0dbc1 to your computer and use it in GitHub Desktop.
composer dump-autoload is slow

composer dump-autoload is slow

View original post

For anybody new coming across this. the fix for me was a combination of things, before which the generating optimised autoload files took over 260s.

First adding : "https://packagist.org" to repositories in composer.json.

"repositories": [ { "type": "composer", "url": "https://packagist.org" } ]

then

composer clear-cache
composer update

then

composer install -vvv --profile

(took about 115 secs) ran after this and its now 20s

composer install -vvv --profile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment