Comparing the performance of Panama with JNI, JNA, and JNR - based on Java 21

Maurizio Cimadamore maurizio.cimadamore at oracle.com
Sun Mar 26 12:46:40 UTC 2023


On 26/03/2023 13:22, Maurizio Cimadamore wrote:
> If you have a heap segment, calling native strlen would not work. 

Forgot: another problem is that just offloading to external "strlen" 
will not respect the memory segment boundaries (e.g. the underlying 
strlen will keep going even past the spatial boundaries of the memory 
segment).

Stepping back, I think this is "just" matter of writing a more efficient 
implementation that the one we have - and perhaps have some C2 
intrinsics to exploit some vectorization (or, in the future, just use 
the Vector API to do the same).

Maurizio




More information about the panama-dev mailing list