Overview
Explore strategies for optimizing Scala compilation times in this 43-minute conference talk from Scala Days Copenhagen 2017. Delve into the challenges of long and unpredictable compile times in Scala projects, and discover practical solutions to improve performance. Learn about compiler options, analysis techniques, and established patterns to minimize compilation times. Investigate the impact of language features, external libraries, and type annotations on build duration. Gain insights into implicit resolution, macro usage, and the potential of distributed compilation. Examine the benefits of Triplequote Hydra, a tool designed to utilize multiple cores for faster Scala compilation. Understand Amdahl's law and its implications for parallel processing. Compare cold and warm compilation times, and explore how Hydra performs with complex libraries like Shapeless. Acquire valuable knowledge to optimize your Scala development workflow and reduce compilation bottlenecks.
Syllabus
Intro
Scala releases & compilation speed
Scala compiler options
Analyse
Investigate!
Implicit resolution: Example
Take away
Macro bittersweet
Distribute Scala compiler
Amdahl's law -- without infinite cores?
Hydra Today
How well does it work?
How about shapeless tests?
Cold & Warm times
Triplequote Hydra Compiler
Insights
Hydrate Build
Giving back to the community
Taught by
Scala Days Conferences