CodeName OneShai Almog11 min readintermediate
Honey, I Shrunk Java
Summary
ParparVM reduces Java object headers to four bytes and rewrites the compiler to emit native C, achieving 22‑57 % lower elapsed time and up to 30 % lower peak memory versus JDK 25 across multiple platforms. The redesign also shrinks object sizes and enables faster collection loops, though allocation‑heavy workloads remain slower.
- ParparVM's 4‑byte object header uses a 16‑bit class index plus two 8‑bit fields, cutting per‑object metadata from 8‑12 B to 4 B.
- Self‑translation benchmarks show 22‑57 % lower elapsed time and ~10‑30 % lower peak memory versus JDK 25 on 16 hardware configurations.
- Sequential array access runs ~2.8× faster, but allocation‑heavy workloads still take ~3× longer than HotSpot.
- Typical objects (e.g., VarOp, ArrayList) shrink from 32 B to 24 B, and overall RSS drops ~13 MB in a one‑core container.
Java engineers building low‑footprint or embedded services, and VM designers, should care about the memory and speed gains from a four‑byte object header.
7/10
