composer/composer — pull request #975 by pborreli (2012-08-04 05:30:29+00:00)
Title: [Repository] tweaked for performance

Updating repo is pretty slow on my computer so I tried to find bottlenecks with xhprof.

Found out that an update for composer repo was calling
ArrayRepository::hasPackage 161 times
BasePackage::getUniqueName **614187 times** !!

So i tried to refactor a bit

on my windows box :
Before : 15s
After : 10s

On linux :
Before : 6s
After : 3.8s