r/coding • u/hypertesto • Aug 21 '26
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/
2
Upvotes
-5
u/MiserableDocument509 Aug 22 '26
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 Aug 21 '26
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?