Hi,
Consider the next, simplified, pseudo code data structure:
struct List {
int values;
}
and a
List list;
The data is stored in global memory. When I retrieve list[0].values[0], is this a single call to global memory or are there 2 calls necessary?
I would guess the data at list[0] is retrieved and then values[0], resulting in two consecutive memory calls. If so, I have to make a difficult decision:
-
store all the data in one large array and use a complex index (computational intensive) or
-
have nice and logical datastructures (memory intensive)