JVM Optimization 101
Immutable data structures, defensive copies and functional programming - good coding style often raises one question: Will it be fast enough? To answer that, a few follow-up-questions have to be considered: How does the Java Virtual Machine cope with object allocations, anonymous functions and stream operations? How big is the overhead introduced by those constructs? And which means are available on the JVM that allow me to write readable, yet fast code?
In this talk, I want to bring some light into the dark forest of JVM internal optimizations. I will cover how the JVM sees through your code to apply techniques like inlining, loop unrolling and escape analysis at runtime. You don’t want to be afraid of readable code? You don’t have to! Come to this session and learn why!