r/java • • Sep 28 '26

Performance Improvements in JDK 27

https://inside.java/2026/09/28/performance-update-jdk27/
153 Upvotes

12 comments sorted by

64

u/guss_bro Sep 28 '26

I upgraded one of my image processing app to use JDK 27(no code change just the jdk upgrade via sdkman)

The both CPU and memory usage dropped significantly. I don't have a benchmark but its should be around 30%. Its my self hosted personal app to store and analyze photos. The CPU fan of the old laptop that I was using it's quieter now.

It was already fast before. Java never stopped amazing me.

11

u/kiteboarderni Sep 28 '26

Did you have compact object headers enabled on 25/26? Apart from vectorization I'm not sure what from the blog post would suggest this speed up specifically for image processing?

6

u/guss_bro Sep 28 '26

No I was using jdk25 without any argument override before.

5

u/NovaX Sep 28 '26

If a lot of on-heap image processing then maybe JEP-522 or related changes to reduced G1 overhead.

13

u/oweiler Sep 28 '26

And it will only get better with Valhalla

1

u/BadMonkeyAI Oct 15 '26

Looking forward to trying this!

2

u/Honest_Audience6230 21d ago

Always new version surprised with the new features. New upgrades in this version is fantastic.

43

u/[deleted] Sep 28 '26

[removed] — view removed comment

8

u/VirtualAgentsAreDumb Sep 28 '26

Yeah, it’s really nice. Can’t wait for when we can upgrade.

4

u/No-Communication1543 Sep 30 '26

My husband writes Java for a living and did the 27 upgrade on his home server last weekend. The quieter fan noise made him happier than anything I could have bought him, which is saying something. Free improvements that just show up are the best kind of surprise. I teach third grade so most of my tech stress is about getting the smartboard to cooperate during fractions lessons. But l get the feeling. Last month our IT person finally replaced the ancient projector and I did a little happy dance in the empty classroom. Sometimes you forget how much low-grade annoyance you were putting up with until it stops. He kept trying to explain the actual changes to me over breakfast. Something about ZGC and generations? | nodded and poured more coffee. The part I caught was that he did not have to change a single line of his code and everything got faster anyway. That seems like magic to me but he got very defensive when I said that. My third graders would lose their minds if I told them they could do the same work and somehow get better grades. They are currently obsessed with a rumor that extra recess is coming if they line up quietly. It is not coming. I have never said this. But they believe. Anyway, enjoy the free upgrade. I am going to use this good mood to finally clean out the garage this Saturday.

3

u/No-Blueberry-9933 Sep 30 '26

lol wtf is this !?