icsharpcode/NRefactory — pull request #116 by riviti (2012-09-16 16:01:11+00:00)
Title: Performance enhancements

Improve performance of some inspectors.

Most speedups comes from replacing usage of FindReferences.FindLocalReferences with calls to the new BaseRefactoringContext.FindReferences, which does not need to visit and re-resolve the ast.

Some other inspectors now check what can be checked in the ast before resolving things which also improves performance.

With these changes, analysis of CSharpParser.cs takes roughly 7 seconds instead of 90 on my machine.