Archive

Archive for the ‘Tuning’ Category

Speed-Testing DirectByteBuffers and the Unsafe class against plain old arrays

April 9, 2017 Leave a comment

I’ve long been a fan of Martin Thompson’s talks on youtube, and blogs on the “Mechanical Sympathy” blog. The more you dig into the world of people who care about high performance in Java, you will inevitably come across the technique to optimize memory access using direct ByteBuffers and the sun.misc.Unsafe class. But how so they stack up? Is it true that using them will give you more performance in general?
Read more…

Categories: Tuning Tags: ,