Compiling like a boss!
summary
Long Scala compiles often come from heavy implicit resolution and macro expansion; adding explicit types or moving implicits from package objects into companion objects can cut times (one case: 40% faster after three-line change). Use scalac flags like -Xprint typer, -Xlog-implicits and -verbose to find costly phases (typer often dominates). Triplequote Hydra replaces scalac (binary-identical output), parallelizes per-source-file on multiple cores and yields about 2.2–2.5x speedups on real projects and up to 6x for some test suites.
AI-written summary · about
chapters (18)
- 0:00Intro
- 2:15Scala releases & compilation speed
- 5:23Scala compiler options
- 9:16Analyse
- 11:28Investigate!
- 15:41Implicit resolution: Example
- 19:00Take away
- 20:52Macro bittersweet
- 24:13Distribute Scala compiler
- 26:29Amdahl's law -- without infinite cores?
- 27:47Hydra Today
- 29:54How well does it work?
- 31:22How about shapeless tests?
- 32:27Cold & Warm times
- 33:50Triplequote Hydra Compiler
- 35:15Insights
- 37:20Hydrate Build
- 37:56Giving back to the community








