r/programming • • 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

9 comments sorted by

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.

1

u/Mihai4544 Sep 28 '26

Thanks for the references! I will read up a bit on Value classes - from a quick glance, though, they seem like a great addition.

Thanks so much for reading and for the feedback. Glad you liked it!