Damus
note105egw...
Wolf480pl profile picture
@nprofile1q...
I've heard that this approach - struct-of-arrays instead of array-of-structs - also works well on JVM, for example Minecraft was initially written like this.

Allegedly, if you write your code like that and avoid doing anything object-oriented, Java is as fast as C.
1
Jacob Christian Munch-Andersen · 13w
nostr:nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpq0cq07ulfyc7y2l8rczk9s36g8j65tq3m6xk9us8hr3ua4ktfmaqq05h6ty nostr:nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpqpu3ryltaaqjym9gj5fpcv623edtfh2vuvrtcd8pz75p6nlyt0nrqwf22w0 That is probably mostly an artefact of coding around the garbage collect...