Home / Companies / TigerBeetle / Blog / December 2024

December 2024 Summaries

1 posts from TigerBeetle

Filter
Month: Year:
Post Summaries Back to Blog
The text explores the benefits of using a Struct of Arrays (SoA) and an Array of Enums (AoE) in data-oriented design, highlighting their advantages in memory usage and processing efficiency. SoA reduces memory padding and enhances memory bandwidth utilization by organizing data fields into separate arrays, which is particularly beneficial for operations requiring SIMD optimizations. Similarly, converting AoE to an Enum of Arrays (EoA) minimizes the memory footprint of tags by amortizing them across batches of objects and reduces CPU branching, thereby facilitating faster processing. The example of TigerBeetle illustrates this concept, demonstrating how homogeneous batches of operations improve efficiency by minimizing control plane overhead and maximizing data plane throughput.
Dec 19, 2024 754 words in the original blog post.