[foreign-memaccess+abi] RFR: Performance improvement to unchecked segment ofNativeRestricted [v2]
Radoslaw Smogura
github.com+7535718+rsmogura at openjdk.java.net
Sat Jan 16 15:08:52 UTC 2021
On Sat, 16 Jan 2021 14:59:41 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:
> > Hi. I've added the benchmarks:
>
> >
>
> > * benchmarks used by me;
>
> >
>
> > * added a new benchmarks to `LoopOverNonConstant` to compare performance of this approach with existing methods for getting values.
>
>
>
> It's strange to see the performances of global segment to be worse than that of a regular segment?
Indeed. I can't understand this (I'll make additional research). I suspect that's because the access is indexed (so global memory is treated as big array), or it's more about test itself - there's additional additions and we use longs instead of ints.
-------------
PR: https://git.openjdk.java.net/panama-foreign/pull/437
More information about the panama-dev
mailing list