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.

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.