~/talk

Java streams performance and optimization

Talkat JCON EUROPE 2026 · 2026-04-20..04-23· [java]
links:none on file
slides:none on file

Streams often run substantially slower than equivalent loops when misused: 3x performance loss appears in examples where textbook functional patterns and short-circuiting (e.g. short-circuiting (limit)) confuse the optimizer. Profiling with flame graphs and careful benchmarking that accounts for JIT warmup exposes where the JIT helps and where it can't. Parallelizing can recover speed for some pipelines but adds surprising overheads; simplified pipelines or hand-written loops frequently out-perform naïve stream pipelines.

AI-written summary · about

~/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.