Skip to content

Commit b550d0a

Browse files
authored
Merge pull request #4508 from dotty-staging/opt/complete
Micro-optimize SymbolLoader#complete
2 parents 304ffae + 8f73210 commit b550d0a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler/src/dotty/tools/dotc/core/SymbolLoaders.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ package core
55
import java.io.{IOException, File}
66
import scala.compat.Platform.currentTime
77
import dotty.tools.io.{ ClassPath, ClassRepresentation, AbstractFile }
8+
import config.Config
89
import classpath._
910
import Contexts._, Symbols._, Flags._, SymDenotations._, Types._, Scopes._, util.Positions._, Names._
1011
import StdNames._, NameOps._
@@ -316,7 +317,7 @@ abstract class SymbolLoader extends LazyType {
316317
}
317318
try {
318319
val start = currentTime
319-
if (ctx.settings.YdebugTrace.value)
320+
if (Config.tracingEnabled && ctx.settings.YdebugTrace.value)
320321
trace(s">>>> loading ${root.debugString}", _ => s"<<<< loaded ${root.debugString}") {
321322
doComplete(root)
322323
}

0 commit comments

Comments
 (0)