Gather / starter over Java object
Maurizio Cimadamore
maurizio.cimadamore at oracle.com
Fri Dec 17 22:11:36 UTC 2021
I guess you mean: let's say you have an array of Person instances, where
each Person has a field "age" (of type `int`).
Collect all the ages values into an array? Is this what you have in mind?
Maurizio
On 17/12/2021 18:05, Rados?aw Smogura wrote:
> Hi all,
>
> Not sure if this was proposed already & bit crazy idea.
>
> What do you think about gather scatter over arrays of Java objects and fields. Technically it should be possible using double dereference, and fields offsets are constant.
>
> Performance maybe will not be highest.
>
> Kind regards,
> Rado
More information about the panama-dev
mailing list