r/java • u/davidalayachew • Jul 16 '26
Identifying JDK value class candidates
https://mail.openjdk.org/archives/list/core-libs-dev@openjdk.org/thread/Y72NRXM7KYBX43OKYBQMVKOZDWKG4MHS/
52
Upvotes
View all comments
Show parent comment
1
u/koflerdavid Jul 16 '26
There's no potential for improvement since there is only a very low, finite number of them in the first place. Technically it would be possible to represent them by a small integer, but due to alignment rules the benefit is probably very situational.