~/talk

AOT or JIT: Faster Startup or Faster Code?

Talkat JCON-ONLINE 2021 · 2021-10-05..10-08· [java]
slides:none on file

Compares concrete AOT and JIT tradeoffs for JVM microservices: GraalVM native-image yields much faster startup and smaller memory (Oracle claims ~50× startup, ~5× smaller heap) but loses dynamic speculative inlining; JIT delivers most throughput via speculative optimizations (over half of gains) and adaptive recompilation. Describes Azul tech: C4 GC (continuous concurrent compacting, pauseless), Falcon (LLVM-based JIT), and ReadyNow + compile stashing (records classes, initialization, profiles, deopt info and cached machine code), cutting compile time ~80% and CPU load ~60%, and CRaC checkpoints that restore Spring Boot from ~4s to ~38ms.

AI-written summary · about

  1. 0:00Intro
  2. 1:12JVM Performance Challenges
  3. 5:35Microservice-Based Application
  4. 9:21Microservice Performance Challenges
  5. 12:30Java Compilers: Ahead of Time (AOT)
  6. 17:46Compilers: Just in Time (JIT)
  7. 20:12Speculative Optimisations
  8. 27:09Graal VM For Java Applications
  9. 28:54OpenJDK Project Leyden
  10. 30:30The Azul Prime JVM
  11. 33:14ReadyNow! Solution
  12. 37:10ReadyNow! Effect
  13. 37:46ReadyNow! Start-up Time
  14. 38:32Falcon Pipeline
  15. 39:10Deterministic Compiler
  16. 39:59Add Compile Stashing
  17. 40:32Compile Stashing Effect
  18. 40:59Co-ordinated Restore at Checkpoint (CRC)
  19. 44:11Faster Startup or Faster Code
~/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.