~/talk

Java Must Be Faster: Time for the Vector API

Talkat Carolina Code Conference 2023 · on Saturday, 2023-08-19· [java]
links:none on file
slides:none on file

Java code uses Project Panama's Vector API to hand-roll SIMD dot products for Lucene and Elasticsearch, replacing iterative float loops with lane-wise accumulation, explicit tail handling and Vector species to adapt to 128/256/512-bit vectors. Benchmarks show roughly 8x throughput on wide vectors in microbenchmarks, meaningful nightly gains in Lucene/Elasticsearch, and cases that beat native C++ implementations; HotSpot avoids floating-point auto-vectorization because of non‑associativity, so explicit SIMD is necessary.

AI-written summary · about

  1. 0:00Introduction and speaker intro
  2. 0:46What is SIMD and vector units
  3. 2:33HotSpot and auto-vectorization limits
  4. 3:39Floating point and JVM constraints
  5. 5:03Apache Lucene overview
  6. 6:08Vector search basics
  7. 7:55Vector API benefits and simplicity
  8. 8:38Benchmark results and performance gains
  9. 9:42Java beating native implementations
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.