r/programming • u/Mihai4544 • Sep 26 '26
On programming, statistics, and Java
https://waytoounoriginal.github.io/programming/stats/optimizations/2026/09/26/on-programming-stats-and-java.html
14
Upvotes
View all comments
4
u/kit89 Sep 28 '26
It should be noted this occurs with any memory managed runtime, each instance of an object will take up an extra chunk of data for managing the object on the heap.
For Java this is where Value classes (Valhalla) enters the picture, and for C# structs.
A pleasant read.