Immutable and cache coherence
bearophile
bearophileHUGS at lycos.com
Tue Oct 5 12:17:16 PDT 2010
Tomek S.:
> is there a way to exclude immutable regions of memory from a cache
> coherence mechanism? I mean, let the processor know: no invalidation for cache lines from
> immutable memory.
I don't know the answer, but regarding cache coherence and immutable data, if your data structure (like a graph) is immutable, then it doesn't need free spaces and data necessary to allow its growth. So you are often able to pack it more in memory, and this saves some RAM and reduces cache misses, improving performance too.
Bye,
bearophile
More information about the Digitalmars-d
mailing list