|
|
|
|
|
by pcwalton
3948 days ago
|
|
> Being able to place frequently used together fields manually is quite useful in quite a few circumstances. I have almost never seen this make a difference outside of, say, GPU programming. The fact that Java's optimizer is much better than that of Go will make a much larger difference in execution speed. |
|
The other aspect of layout control is cacheline padding, which is also not present in the JVM. There's @Contended, but it's a blunt tool and not currently a public API (it's in sun.misc).
>The fact that Java's optimizer is much better than that of Go will make a much larger difference in execution speed
Yes, but that's orthogonal.