In Scala, is it bad, from the point of view of efficacy and speed of incremental compilers (sbt, sbt in Eclipse, IntelliJ), to use wildcard imports? Does it adversely affect the way these incremental compilers decide what to recompile in case of changes?
For instance, if for a new class X
, I would only need to import classes A
and B
(and not C
) from package pack
, do I get a penalty for writing this:
import pack._
instead of this?
import pack.{ A, B }
Assuming A
and B
have no dependency on C
, would X
be recompiled with the wildcard import and not with the more specific import when C
changes, or would the dependency tracking system be smart enough to realize that C
is not used by X
despite the wildcard import?