Reputation: 166066
When installing or updating composer packages, sometimes there's a very long lag that looks like
$ composer.phar update
Loading composer repositories with package information
That is, the Loading composer repositories with package information
message appears to hang for 5 or 10 minutes before proceeding.
What, exactly, on a microlevel, is composer doing when it's "Loading composer repositories with package information"? Is this network lag? Processing lag? Both? Neither?
Upvotes: 1
Views: 587
Reputation: 166066
After doing some more digging, I was able to profiles this a little better using the --profile
and -vvv
flags
composer.phar --profile -vvv update
These flags let me pinpoint the exact bit of network latency that caused my problems.
Upvotes: 4