~/talk

Maximizing the Performance of Java 8 Streams

Talkat JavaDay Kyiv 2015 · 2015-11-06..11-07· [java, web-performance]
slides:none on file

Case study implements grep -B with Java 8 streams, using a mapped byte buffer and a custom Spliterator plus a collecting terminal operation to compute byte offsets without mutable accumulators. Microbenchmarking uses the Java Microbenchmark Harness and NetBeans/GC logs; common pitfalls are I/O bottlenecks, GC tuning, dead‑code elimination and a ~100 µs splitting/merge overhead. Sequential streams often beat hand loops; parallel streams reach about 2.5× on a 4‑core machine when the regex work outweighs splitting and collection costs.

AI-written summary · about

  1. 0:00Introduction to streams
  2. 4:31Streams and parallelism
  3. 11:17Hardware and performance
  4. 16:47Micro-benchmarking pitfalls
  5. 24:35System-level performance
  6. 33:28JVM and garbage collection
  7. 41:22Case study: Grep utility
  8. 51:00Conclusion on parallelism
~/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.