Java Performance
-
Core Java

Array of Structs vs Struct of Arrays in Java: What the JIT Can and Cannot Fix
Most of the time, the memory system sets the speed limit, not the arithmetic. Therefore, how you lay out data…
Read More » -
Core Java

Why synchronized Got Fast: The Rise and Removal of Biased Locking
For years, Java developers heard the same advice: “synchronized is slow, so avoid it.” Then, around Java 6, that advice…
Read More » -
Core Java

Project Leyden: Faster Java Startup Without GraalVM’s Pain, and What You Give Up
Java startup has long been the price of a smart runtime. GraalVM Native Image fixed it by replacing the JVM,…
Read More » -
Core Java

Stop Using Virtual Threads for Everything: Performance Lessons Learned
When JEP 444 landed in Java 21 in September 2023, the reaction across the Java community was unusually enthusiastic. Virtual threads promised…
Read More » -
Core Java

Project Panama FFM API: Calling C Code Without JNI Hell
Java has always needed a way to call native code. Scientific computing, image processing, hardware drivers, cryptography libraries — the…
Read More » -
Core Java

Lazy Constants (JEP 531): JIT’s Best Friend You Haven’t Met
How ofLazy() unlocks constant-folding without static final, why it finally replaces double-checked locking, and what the numbers look like in practice. Every Java…
Read More » -
Core Java

The Split-Brain Problem in Plain English — And the Three Ways Your Distributed Cache Handles It Wrong
Redis Sentinel, Hazelcast, and Infinispan all have split-brain documentation. None of them tell you what your Java code silently observes…
Read More » -
Core Java

ThreadLocal Is a Memory Leak Waiting to Happen With Virtual Threads — Here’s the Proof
ThreadLocal was designed for a world of 200 pooled platform threads living for the life of an application. Virtual threads…
Read More » -
Core Java

The Hidden Cost of Records: When Java’s Immutable Data Classes Quietly Hurt Your GC
Records are clean, expressive, and widely adopted — but in tight, allocation-heavy loops, they can pile invisible pressure on the…
Read More »
