Compiling Like A Boss!
summary
Scala compile time hotspots are konkret: typer phase can take >50% of compile time, macros and implicit lookup cause blowups (examples: 20–40% slower across versions, single files expanding to 45,000 lines), and moving implicits from package objects to companion objects cut a real project’s build by ~40%. Use scalac flags like -Xlog-implicits, -verbose and -Xprint to inspect phases and macros, or compile single file to test by setting the target/classpath. A drop‑in product exists as an Idra SBT plugin (subscription, forked now) that parallelizes per‑source compilation and reports 2×–3× speedups (30–40% in some cases).
AI-written summary · about
