2 ms·
the cache subsystem might be smart enough to cache the first line, e.g. the size of the array etc, then pull the rest of array content from heap and cache the a
by synergy20 3y ago
the cache subsystem might be smart enough to cache the first line, e.g. the size of the array etc, then pull the rest of array content from heap and cache the array as needed, should be fine to me, yes two cache misses instead of one at the beginning.
- stefncb 3y agoThe CPU cache simply pulls the memory next to what you loaded. It doesn't interpret what it sees.