Struct-of-Arrays
A memory layout pattern in which the fields of a structure are stored separately in independent contiguous arrays, improving cache locality and SIMD efficiency.
Timeline (last 90 days)
The team rewrote the execution safety sentinel in pure Rust, adopting a Struct-of-Arrays memory layout and adding #![forbid(unsafe_code)] to disable unsafe code.
In the traditional Array-of-Structs layout, traversal causes L1/L2 cache misses as the CPU jumps between object pointers, and a single cache miss can cost hundreds of clock cycles; the Struct-of-Arrays layout arranges the same field contiguously, facilitating cache line loading and automatic vectorization.
All Facts (2)
The team rewrote the execution safety sentinel in pure Rust, adopting a Struct-of-Arrays memory layout and adding #![forbid(unsafe_code)] to disable unsafe code.
50%UnverifiedIn the traditional Array-of-Structs layout, traversal causes L1/L2 cache misses as the CPU jumps between object pointers, and a single cache miss can cost hundreds of clock cycles; the Struct-of-Arrays layout arranges the same field contiguously, facilitating cache line loading and automatic vectorization.
50%