ByteBuffer performance issue in Java 9?

Andrew Haley aph at redhat.com
Mon Mar 13 09:50:16 UTC 2017


On 13/03/17 08:37, Andrew Haley wrote:
> On 12/03/17 21:15, Michael McCandless wrote:
>> I compared Java 1.8.0_121 (base, below) and Java 9 ea 160 (comp), indexing
>> and searching all Wikipedia English content, using MMapDirectory, and
>> net/net there is some smallish slowdown, but it's not catastrophic.
> 
> Right, but ByteBuffers were significantly rewritten for a significant
> performance *increase*.

Just for clarification: heap-based ByteBuffers are most significantly
affected.  Mapped ByteBuffers see a much smaller, if any, effect, as
I said in my earlier post.

Andrew.




More information about the jdk9-dev mailing list