3 ms·
There are a lot of factors involved, but given a limited number of cache lines that can be stored in low level cache, I would think there'd be at least some per
by spijdar 4y ago
There are a lot of factors involved, but given a limited number of cache lines that can be stored in low level cache, I would think there'd be at least some performance penalty for prefetching from non-linear blocks of memory vs the inherent spatial locality in an array/vector, if only because it'd cause more old cache to be evicted.
- AstralStorm 4y agoOr the opposite, prefetching a whole vector when you just need one item, evicting more than needed unnecessarily. There is a reason why non-embedded CPUs have sizable L2 caches now.