~/talk

Compile-Time Java Stream Fusion via mapMulti

Talkat SOAP 2026 · on Tuesday, 2026-06-16· [java, compilers-and-language-design]
links:none on file
links:none on file
slides:none on file

An open-source bytecode-to-bytecode optimizer fuses adjacent map/filter calls into a single mapMulti invocation by translating class files to XML then to Phi-calculus expressions, applying 44 rewriting rules, and lowering back to bytecode (four opcodes → two). On nine benchmarks it wins in 2 cases, matches or preserves performance in most others, reproduces Streamliner’s gains on megamorphic pipelines, adds about +40% compile time, and validates correctness by running 31,799 Kafka unit tests without failures.

AI-written summary · about

  1. 0:00Java stream optimization
  2. 1:48Stream API performance issues
  3. 4:43Megamorphic benchmarks gap
  4. 5:27Introducing mapMulti for fusion
  5. 7:15Bytecode optimization pipeline
  6. 9:22Rewriting rules in Phi Calculus
  7. 11:48Stream fusion results
  8. 13:51Apache Kafka safety testing
  9. 14:57Compile-time performance impact
  10. 15:19Key takeaways
~/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.