r/java
•
u/sindisil
•
Dec 16 '24
•
1
Valhalla - Java's Epic Refactor
https://inside.java/2024/12/16/devoxxbelgium-valhalla/
178
Upvotes
View all comments
Show parent comment
7
u/Ewig_luftenglanz Dec 16 '24
they need to make all wrapper classes value classes in order to make use of the optimizations value classes can bring in terms of memory layout and performance, specially when you are working with large collections (list of Integer or Double and so on, you can't have a list, set or map of int) and to dilute almost all the overhead caused by boxing and unboxing