~/talk

Hotspot JVM Auto Vectorization and Vector API

Talkat Voxxed Days Zurich 2026 · on Tuesday, 2026-03-24· [java]
links:none on file
slides:none on file

C2’s SuperWord auto‑vectorizer packs unrolled loops into SIMD and on the normal‑map demo a loop goes from ~36 FPS to ~130 FPS; a Vector API N‑body demo reaches ~170–180 FPS after tuning. JDK26 adds a runtime overlap check for MemorySegments (Panama) to safely vectorize copies; reductions and aliasing work improve throughput. Benchmarks show Netflix gets ~7–12% from vectorized dot products; beware AVX alignment pitfalls and that Vector API compress/filter examples can outperform scalar but fall back slowly on unsupported hardware.

AI-written summary · about

  1. 0:00HotSpot JVM vectorization intro
  2. 1:00Vectorization and CPU performance
  3. 3:00Java vectorization models
  4. 5:56How HotSpot auto vectorizer works
  5. 8:03Demo: auto vectorization mapping
  6. 9:06Vector API for explicit vectorization
  7. 13:46Vectorized array algorithms
  8. 15:31Mapping and reduction with vectors
  9. 20:07Floating-point reductions handling
  10. 22:15Vectorized array copy checks
  11. 26:06Vectorizing loops with control flow
  12. 30:58Data filtering with vectors
  13. 34:10Demo: Vector API in particle sim
  14. 37:19Summary and future of Java vectorization
  15. 40:23Q&A on vectorization
~/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.