Gather / starter over Java object
Rado Smogura
mail at smogura.eu
Fri Dec 17 22:32:20 UTC 2021
Hi,
Let's assume we have array of Persons. Load array into vector, add
fields offsets + start of heap, and execute final SIMD gather to have
ages in vector. (With compressed oops, object address is like index of
array starting at the beginning of heap)
Just a loose idea.
Kind regards,
Rado
On 17.12.2021 23:11, Maurizio Cimadamore wrote:
> 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