News for hackers. Stuff that matters.
Re:Bulk Data Structures C++ by pavlov on Tuesday August 20, 2019 @05:14PM (#20752230)
I don't think the article is suggesting ever making temporary copies of data into a structure-of-arrays (SOA) format. Rather the choice should be made at design time and you write your code accordingly for those parts that deal with SOA data.

The author's advice is that you should go with the standard array-of-structures (AOS) format by default, but if you know you'll be doing number crunching, use an "unrolled by eight" grouped SOA format that's both SIMD- and cache-friendly.

Re:Bulk Data Structures C++ by std_throwaway on Tuesday August 20, 2019 @05:27PM (#20752377)
FTA: "Another thing I might consider is to keep the data stored at AoS, but generate temporary SoA data for processing by some algorithm."
Re:Bulk Data Structures C++ by pavlov on Tuesday August 20, 2019 @06:15PM (#20752757)
Missed that, thanks!