~/talk

How Fast is Spring

Talkat Spring I/O 2019 · 2019-05-16..05-17· [java]
slides:none on file

Measurements show common assumptions about Spring slowness are wrong: most startup time is class loading, not autoconfiguration or reflection, and benchmarks cut a hello-web app from ~1,300ms to ~700ms (and demo PetClinic variants from ~98s to under 3s, then under 1s). Tools used: JMH, async-profiler, JMC and flame graphs. Effective fixes include classpath exclusions, lazy bean definitions, JVM flags (-noverify, reduced JIT), class-data-sharing; GraalVM native images push cold starts to ~40ms.

AI-written summary · about

  1. 0:00Introduction
  2. 1:34The JVM
  3. 5:35Start Startup Times
  4. 9:22Start Startup Times Graph
  5. 18:55How to make it go faster
  6. 23:11Lazy XML
  7. 25:23JAR
  8. 35:13Tools
  9. 38:37Demo Sample
  10. 40:08Data Correlation
  11. 42:11JVM tweaks
  12. 44:02Classpath exclusion
  13. 44:36Spring Boot features
  14. 47:43Pet Clinic
  15. 48:50Spring Function
  16. 50:29Constraints
  17. 51:46Native Images
~/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.