3 ms·
I bet they used a bit of sun.misc.Unsafe too https://blogs.oracle.com/javamagazine/the-unsafe-class-unsafe-at-any-speed https://blogs.oracle.com/javamagazine/t
by secondcoming 6y ago
I bet they used a bit of sun.misc.Unsafe too
https://blogs.oracle.com/javamagazine/the-unsafe-class-unsafe-at-any-speed https://blogs.oracle.com/javamagazine/the-unsafe-class-unsaf...
- taion 6y agoLess than you'd think – it comes up in serializing/deserializing data, somewhat, because JNI has a fair bit of overhead, but this isn't really like Rust's "unsafe". To have fast Java, you really need the JIT to be happy, and that's not a safe bet if you're doing random things with Unsafe.