FANDOM


In this optimization, the members of a struct in C or a similar language such as Pascal, are re-ordered so the most commonly accessed ones, will be faced within the cache line of the processor, to speed up the access speed.

Alternatively, one can also align to reduce cache misses and make sure that struct members that are commonly accessed together are not in the same alignment.