Hacker News new | ask | show | jobs
by exDM69 6 days ago
> The best SIMD optimizations likely require changing your data format from AoS to SoA.

We do have gather load instructions in SIMD instruction sets these days (AVX2 and newer), so AoS vs SoA is not nearly as important as it was once.

Scatter stores are also available but only in newer CPUs.

1 comments

It remains extremely important. Gather loads are much more expensive than sequential loads, for obvious reasons.