~/talk

Compiling Scala Faster with GraalVM

links:none on file
slides:none on file

GraalVM plus its Native Image tool compiles Scala projects faster: JVM JIT runs show ~1.3–1.5× faster compilation overall (community build ~10%, examples: shapeless 1.26×, scalac ~1.35×), and SBT-integrated runs often cut developer compile time by ~30%. Two compiler optimizations highlighted are partial escape analysis and speculation-driven path duplication that remove allocations and replace expensive ops. Building a native-image of scalac yields huge cold-start wins (up to ~6×–13× faster for small tasks, comparable or slightly faster peak throughput than HotSpot), with limitations around dynamic class loading and reflective macros.

AI-written summary · about

  1. 0:00Start
  2. 0:21Startup Time
  3. 1:09Native Image
  4. 3:34Partial Escape Analysis
  5. 4:54Simulate Simulation Based Paths of Duplication
  6. 6:14Cost-Benefit Analysis
  7. 9:53Performance of the Scala Compiler
  8. 15:19Problem of Startup in Managed Runtimes
  9. 30:52Shared Library
  10. 31:53Scala Native
  11. 32:45Jvm Libraries
  12. 33:02Benchmarking
  13. 33:44Summary
  14. 40:09Java 9 Runtime
~/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.