title: How can we know if struct is on CPU cache or lost them to memory cache?
body: <p>I'm trying to write C# game framework, So performance was critical here.</p>
  
  <p>Here is the <a href="https://jacksondunstan.com/articles/3860" rel="nofollow noreferrer">reference</a> I've found.</p>
  
  <p>Question is, How can we know if structs are still on the CPU-cache?</p>
  
  <p>If we can't, Then what scenarios pushing structs to memory-cache.</p>
  
  <p>For example, Push a struct to List&lt;> then access them later, Will it still be on CPU-cache?</p>