As discussed in Memory and Data Alignment in C++, memory alignment is commonly used for optimisation. One of the methods is cache line alignment. Cache Lines As a prerequisite, data is moved between the CPU cache and main memory in fixed size blocks, known as cache lines. …