The SoA Vector – Part 2: Implementation in C++—Sidney Congard
▻http://isocpp.org/feeder/?FeederAction=clicked&feed=All+Posts&seed=http%3A%2F%2Fisocpp.org%2Fblog%2F2
The series continues and end.
The SoA Vector – Part 2: Implementation in C++ by Sidney Congard
From the article:
Like we saw in the first part of this series on SoA, the SoA is a way to organise the data of a collection of objects to optimise the performance of certain use cases: traversing the collection by accessing the same data member of all the objects: struct person
std::string name;
int age;
;
std::vector<person> persons = ...
for (auto& person : persons)
++person.age;
struct person
std::string name;
int age;
;
std::vector<person> persons = ...
for (auto& person : persons)
++person.age;
The SoA in its barest expression is this: (...)
#News,Articles&_Books,