Re:Why Discord is switching from Go to Rust
by jfim on Tuesday February 04, 2020 @10:58PM
(#22243887)
They are optimized, yes, but from what I recall from reading the JVM code a few years ago, some optimizations don't get applied to those reads/writes. For example, summing two arrays together will be vectorized to use SSE instructions while doing so through Unsafe won't [0].
[0] https://cr.openjdk.java.net/~vlivanov/talks/2017_Vectorizati...