composer/composer — pull request #489 by Taluu (2012-03-22 10:14:25+00:00)
Title: [ClassLoader] Optimization: condition that do not belong in a loop

Why is this foreach outside the condition of verification of the namespace?

Should not it be better that the conditions are outside of this foreach, since these conditions will always return the same result for any item covered by this foreach?

(Note : this PR was copied from the one I made several months ago on the same subject for symfony/symfony)

Cheers