4

I use Windows 7 operating system. I have a problem when I try to launch command like :

php composer.phar update

15 minutes to launch update and I have a good internet connection (maybe more !). It happen when I use another internet connections.

What happen ?

Med
  • 183
  • 8

1 Answers1

1

Composer update can be a slow operation, because it takes a lot of time to resolve dependencies in projects with big dependency graphs. If you open system monitor at some point while composer is updating, you will probably see 100% CPU utilisation on one core at least.

If you have XDebug enabled, disable it because it degrades composer performance significantly.

Whenever you have composer.lock file and you don't actually want to update your project's dependencies, it is best to use composer install, as it will just install versions of libraries defined in composer.lock and will be finished a lot faster.

Igor Pantović
  • 9,107
  • 2
  • 30
  • 43
  • I have two questions : how to disable XDebug ? I edited php.ini file but I still have the message - Why composer update work very fast when I use linux system ? – Med Jul 31 '16 at 01:24