3 ms·
I agree it isn't great, but it works, and if you need that extra performance in a small part of your application it can allow you to stay on the JVM. I'd rather
by noelwelsh 13y ago
I agree it isn't great, but it works, and if you need that extra performance in a small part of your application it can allow you to stay on the JVM. I'd rather do that than write everything in C (YMMV.)
The blog posts I linked compare performance to nio ByteBuffers, and show improvement for Unsafe over ByteBuffer. That might be relevant to your case.
- beagle3 13y agoI rewrote in C, and got 10x speedup and x4 less memory. So, it's no longer relevant :)