Performance of memory var handles in hot loops

Maurizio Cimadamore maurizio.cimadamore at oracle.com
Wed Apr 8 10:19:22 UTC 2020


On 08/04/2020 08:58, Antoine Chambille wrote:
> I'm not too worried about that because the panama vector API is 
> coming. By the way is there already a prototype of the Vector API that 
> works on memory segments?

No, I think ATM the vector API doesn't have a way to load a vector from 
a memory segment. That said, IIRC it has ways to load it from a 
ByteBuffer and you can turn the segment into a BB (provided it fits into 
a 32-bit size).

I did some experiments in the past about bridging the two APIs, the 
results I got were a bit hit and miss but it was a long time ago - maybe 
it's time to do another attempt.

Maurizio



More information about the panama-dev mailing list