3 ms·
> If you need near memory access and have constant loops over arrays of objects then Java will be slower than that when compared to C++ because of the memory la
by anonymoushn 5y ago
> If you need near memory access and have constant loops over arrays of objects then Java will be slower than that when compared to C++ because of the memory layout (Valhalla will improve that).
In a former life we used Scala magic to pretend we had an array of structs. Otherwise, yeah, this is a huge issue facing JVM apps.
- invalidname 5y agoValhalla will solve this. I disagree that this is a huge issue. There are some edge cases where this is significant but for most web/enterprise applications I don't think this is huge.