|
|
|
|
|
by vitalyd
3948 days ago
|
|
This is mostly an issue for large objects (i.e. span multiple cache lines), but have different access patterns for various fields (i.e. clusters of fields accessed together). 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. |
|