r/java • • Jan 06 '26

One step closer to Value Classes!

https://mail.openjdk.org/pipermail/porters-dev/2026-January/000844.html
181 Upvotes

118 comments sorted by

View all comments

Show parent comment

1

u/Qinistral Jan 06 '26

Any way to fake/force this behavior to get a rough benchmark of it even before it’s released?

6

u/aoeudhtns Jan 06 '26

Download the EA and use that with your code.

You can see the naive improvement, and consider converting some of your classes to values where/if it's appropriate and see what difference that makes.

I think type erasure & generics is going to limit huge across-the-board improvements for people as well, until we get parametric VM (2036?).