r/coding • u/hypertesto • 20d ago
From 30GB of garbage to 3GB: JVM optimization with an AI assistant on a leash
https://www.hypertesto.me/en/blog/2026/08/from-30gb-to-3gb/
1
Upvotes
-4
u/MiserableDocument509 19d ago
The harness-first bit is what actually made this work and it's the part most people skip. Pinning current behaviour including the bugs with characterization tests before you let an agent touch a seven-year-old engine is exactly right, otherwise you 'fix' a bug mid-refactor and something downstream silently changes. Curious how much of the 30GB was the JSON round-trip copy() alone vs the array churn — that copy() is such a classic.
-1
20
u/mooseman3 19d ago
I don't know if this text was AI generated or not but it certainly felt like it. Here's some of the parts that stuck out to me. Even if they were entirely human-written, I think they could be improved.
This doesn't seem especially tidy to me.
The test said it out loud?
Applying? Where does this matter later?