Allocating Memory Aligned To Cache Lines
It would be beneficial to allocate memory aligned to cache lines. If an array is partitioned for more than one thread to operate on, having the sub-array boundaries unaligned to cache lines could lead to performance degradation. Here is an example to allocate memory (double array of size 10) aligned to cache of 64 bytes.
#includeRead more about this topic: Data Structure Alignment
Famous quotes containing the words memory and/or lines:
“Perhaps a man like you cant realize what it is to have a conscience and no memory at all. Do you imagine its pleasant to be ashamed of something you cant even remember?”
—Orson Welles (19151985)
“The opera isnt over till the fat lady sings.”
—Anonymous.
A modern proverb along the lines of dont count your chickens before theyre hatched. This form of words has no precise origin, though both Bartletts Familiar Quotations (16th ed., 1992)