[composer] amélioration des performances

https://github.com/composer/composer/pull/3482