He tried to point out that multilateral feedback between small objects tends to decrease the effectiveness of code caching. You cannot completely avoid related structures, but in some cases you may prefer a “flat” layout, which, for example, is suitable for the entire cache line.
- , , "", O(n), next . , n , log(n) .
, :
struct point {
int x, y;
};
struct rect {
struct point origin;
struct point size;
};
rect point, rect "", , . - , rect , , , origin.x .
, "" , rect , . , , , , , .