scala-ide / scala-worksheet

A Scala IDE plugin for a multi-line REPL (called worksheet)
96 stars 24 forks source link

Typing is slow when worksheet contains huge mixin composition #186

Open Blaisorblade opened 10 years ago

Blaisorblade commented 10 years ago

Typing in the worksheet (with Scala-IDE 3.0.3) is painfully slow for me — as in, slower than typing over SSH. It was not like this, but I can't pin down when this changed. Might be related to #112, but I can't really tell.

Blaisorblade commented 10 years ago

Aaah, figured it out! The worksheet in question contains a line composing almost all mixins for my whole project together.

Moving that line to a method in a separate trait (EDIT: done in inc-lc/ilc-scala@10beab849b5fec3a04b17bea87ed2fa31c147021) makes things much faster — both typing and evaluation of subsequent lines.

It seems more plausible that #112 is involved.

dragos commented 10 years ago

This is most likely a performance problem in the type-checker, and your workaround is a good solution. Another few options: