You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
scala-reflect library initialization takes over 600 milliseconds on my machine. When using sbt-revolver plugin for faster dev turnaround, it is a lot.
See attached test.
sergey@sergey:/tmp/1$ sbt run
[info] Loading global plugins from /home/sergey/.sbt/0.13/plugins
[info] Set current project to root-1 (in build file:/tmp/1/)
[info] RunningTest
time: 704ms
The text was updated successfully, but these errors were encountered:
@retronym said:
I have dug into this before and found the problem was that reflection ends up eagerly loading java.lang.Class far more eagerly than the regular compiler does the analagous operation, parsing a .class file into a Symbol.
I wasn't able to introduce laziness in the right places to fix this. The difficulty stems from the fact that runtime reflection can't enumerate the classpath, see the comments just above that link for some elaboration.
scala-reflect library initialization takes over 600 milliseconds on my machine. When using sbt-revolver plugin for faster dev turnaround, it is a lot.
See attached test.
The text was updated successfully, but these errors were encountered: