~/talk

Exploring Build Caching - A Practical Overview

Talkat Scala Days 2025 Lausanne · 2025-08-19..08-21· [developer-experience]
slides:none on file

Build caching reduces repetitive work by reusing compiler outputs and test artifacts; sbt 1 already supports remote compilation caching (push/pull of class files + inc compiler state) and sbt 2 plans a Bazel-compatible protocol with local and remote stores. Implementation requires stable inputs/outputs, explicit declared outputs, and cache observability to track hit/miss rates and size. Real-world uses include Scala 3 and Pekko repositories; reported gains range from minutes per developer to saving multi-day CI test runs when cache hit rates are high.

AI-written summary · about

  1. 0:00Introduction
  2. 1:05What is build caching
  3. 4:11Challenges in build caching
  4. 6:56Incremental compilation
  5. 7:16Build caching solutions
  6. 8:41Build caching in SBT1X and SBT2
  7. 10:03Specialized caching in SBT1X
  8. 11:06Remote compilation caching in SBT1X
  9. 12:29Making remote caching easier
  10. 15:20Cache key generation in SBT
  11. 16:03Cached tasks
  12. 18:54Caching test results
  13. 20:39Generalizing task caching
  14. 22:48Task caching challenges
  15. 23:11Deploying build caching
  16. 24:35Need for cache observability
  17. 25:37Pitfalls in build caching
  18. 27:43Conclusion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 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
?
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.