ByteBuffer performance issue in Java 9?

Uwe Schindler uwe at thetaphi.de
Fri Mar 10 18:34:09 UTC 2017


Hi Andrew,

> > It would be good to get some information about your plans :-) Thanks!
> 
> I believe you should not worry too much.  The biggest performance drop
> seems to be heap-based ByteBuffers rather than off-heap ByteBuffers,
> which is what you use.  The only problem you'll see is that they don't
> get vectorized, which you can probably live with.  On the other hand,
> heap ByteBuffers are very badly affected.
> 
> Sorry to cause a panic; I should have explained better.

No problem, thanks for the explanation. We will of course do some performance tests, this is why I put Mike McCandless on the list of people on this mail. We will report back if we see any significant problems. It depends if vectorization affects us. We have vectorization at other places, but I don't know about our use of ByteBuffers (seems unlikely).

Do you know in which build these problems were introduced, so we can have a comparison:
- Java 8u121
- Java 9 build ??? - before the problem
- Java 9 b159

Uwe



More information about the hotspot-dev mailing list