aboutsummaryrefslogtreecommitdiff
path: root/libraries
diff options
context:
space:
mode:
authorRobey Pointer <robey@twitter.com>2011-06-23 17:31:53 -0700
committerChristopher Vogt <oss.nsp@cvogt.org>2016-11-07 02:08:38 -0500
commit8e6a2e18a3c8ec55ce84d7820907e47fd2fb0875 (patch)
treec0add0ee51c8d757160c94924330c70a33b296d3 /libraries
parent45290fade6da61d24f304346468ce3d7058f53a1 (diff)
downloadcbt-8e6a2e18a3c8ec55ce84d7820907e47fd2fb0875.tar.gz
cbt-8e6a2e18a3c8ec55ce84d7820907e47fd2fb0875.tar.bz2
cbt-8e6a2e18a3c8ec55ce84d7820907e47fd2fb0875.zip
[split] add comments for future people looking for performance improvements in Eval
Diffstat (limited to 'libraries')
-rw-r--r--libraries/eval/Eval.scala2
1 files changed, 2 insertions, 0 deletions
diff --git a/libraries/eval/Eval.scala b/libraries/eval/Eval.scala
index 9b205b3..e1da151 100644
--- a/libraries/eval/Eval.scala
+++ b/libraries/eval/Eval.scala
@@ -368,8 +368,10 @@ class Eval {
if (Debug.enabled)
Debug.printWithLineNumbers(processedCode)
+ // if you're looking for the performance hit, it's 1/2 this line...
val compiler = new global.Run
val sourceFiles = List(new BatchSourceFile("(inline)", processedCode))
+ // ...and 1/2 this line:
compiler.compileSources(sourceFiles)
if (reporter.hasErrors || reporter.WARNING.count > 0) {