@stucork could this possibly be the same issue as [Fixed] IDE is slow when opening a file with lots of code?
If so, then this bug should be fixed.
Some context for others: the issue in the other bug report was actually having a lot of components rather than a lot of code.