<div dir="ltr"><font face="monospace">Wanted to discuss a performance regression I noticed here before opening an issue since I'm somewhat surprised it's flown under the radar and wanted a gut check.</font><div><font face="monospace"><br></font></div><div><font face="monospace">In an application that does GZIP decoding from byte[] per request, I noticed in a profile that these calls were spending a lot of time in Throwable#fill_in_stack_trace, something I hadn't seen before. I found JDK-<tt style="box-sizing:border-box;font-size:12px">7036144 [1], and looking into the change I see that when decoding a single GZIP message we now rely on exceptions for control flow to detect the end of input, which is likely the cause. I wrote a JMH benchmark [2] and tested performance between JDK 22 and 23+ and the performance seems much worse for this single-shot use case, which I suspect is fairly common when decompressing bytes off the wire. Running the benchmark locally I see 20-30% reduction in throughput.</tt></font></div><div><font face="monospace"><tt style="box-sizing:border-box;font-size:12px"><br></tt></font></div><div><font face="monospace"><tt style="box-sizing:border-box;font-size:12px">Wanted to check if this is a known issue or if I am just missing something.</tt></font></div><div><font face="monospace"><tt style="box-sizing:border-box;font-size:12px"><br></tt></font></div><div><font face="monospace"><tt style="box-sizing:border-box;font-size:12px">Thanks,</tt></font></div><div><font face="monospace"><tt style="box-sizing:border-box;font-size:12px">Patrick Strawderman</tt></font></div><div><tt style="box-sizing:border-box;font-size:12px"><br></tt></div><div><tt style="box-sizing:border-box;font-size:12px">[1] <a href="https://github.com/openjdk/jdk/commit/d3f3011d56267360d65841da3550eca79cf1575b">https://github.com/openjdk/jdk/commit/d3f3011d56267360d65841da3550eca79cf1575b</a></tt></div><div><tt style="box-sizing:border-box;font-size:12px">[2] <a href="https://gist.github.com/kilink/9a9bed0a8a272d9b8826d5c49f1708a4">https://gist.github.com/kilink/9a9bed0a8a272d9b8826d5c49f1708a4</a></tt></div></div>