scala/scala — pull request #1521 by paulp (2012-10-23 23:18:19+00:00)
Title: Saving symbol lookup from typedIdent.

Anticipating the appeals to performance, I offer this coarse measurement. My times are the good ones. Better measurements are welcome, but I convinced myself at least that I wasn't hurting anything.

% for i in 1 2 3; do time scalac3 -J-Xmx1g -d $(mktemp -dt foo) $(find /scratch/trunk5/src/library/scala/collection/mutable -name '*.scala') ; done
28.139 real, 68.872 user, 1.186 sys
30.963 real, 70.071 user, 1.260 sys
29.741 real, 73.389 user, 1.249 sys
% for i in 1 2 3; do time ./pack-whats-in-a-name/bin/scalac -J-Xmx1g -d $(mktemp -dt foo) $(find /scratch/trunk5/src/library/scala/collection/mutable -name '*.scala') ; done
28.129 real, 68.396 user, 1.176 sys
27.571 real, 67.318 user, 1.081 sys
27.240 real, 66.336 user, 1.046 sys

Review by @odersky, @adriaanm.