scala/scala — pull request #905 by odersky (2012-07-14 09:04:05+00:00)
Title: Gradual optimizations of findMember method

findMember takes about 30% of typechecking aggregate, 20% if we discount nested calls to asSeenFrom.
I have tried ten different things to make it faster. The end result is less impressive than I had hoped for. I get about 16% reduction in wall-clock time for findMember, but my timings might be off. Still, every small improvement is worth it.

I left all 10 changes as separate commits, so that we have a chance of measuring what works and what doesn't when Greg's benchmarking code is done.