While trying to find an answer to my question about arrays vs objects, I ran into the problem of pointer chasing. which might be a lead…
And I watched this video Java Performance Puzzlers by Douglas Hawkins where he said :
“hardware doesn’t like things being jumbled in memory it wants nice contiguous compact things”
The whole video is worth watching.
2 Likes