~/talk

How Incremental Compilation Makes Scala 3 Builds Faster

Talkat Scala Italy 2023 · on Saturday, 2023-11-11· [scala, compilers-and-language-design]
slides:none on file

Scala 3 keeps Zinc’s incremental algorithm and adds name hashing plus API and dependency phases inside the compiler so builds detect changes fast; collecting APIs and dependencies costs about 10% overhead but a one-line edit drops a 15s cold build to under 1s. Pickler emits TASTy signatures early so downstream modules can start compiling, enabling pipelining that yields ~20–34% faster builds at the cost of higher memory and some concurrency risk. Two‑pass/outline compilation promises further speedups.

AI-written summary · about

  1. 0:00Introduction to incremental compilation
  2. 1:04About the Scala Center
  3. 2:07Why incremental compilation matters
  4. 3:14Compilation pipeline overview
  5. 5:40What is incremental compilation
  6. 7:45Rules for efficient incremental compilation
  7. 8:27How Zinc tracks changes
  8. 11:19Scala 3 compiler phases
  9. 12:45Dependencies and API tracking
  10. 15:00Name hashing explained
  11. 17:09Optimizing code structure
  12. 18:12Scala 3 changes for Zinc
  13. 20:22Multi-project builds
  14. 23:37Pipeline builds concept
  15. 25:44Demo of pipeline builds
  16. 29:41How pipelining speeds up builds
  17. 31:28Benchmarking pipeline builds
  18. 33:38Two-pass compilation idea
  19. 35:24Summary and future work
  20. 36:15Q&A session
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.