Reputation: 10463
I want to keep my code from flushing off the L2 cache as much as possible.
How would you achieve that in C++ / C# and how would you make it accountable.
EDIT : can I collect number of L2 cache misses alternatively? Answer : Yes Can I get the L2 cache miss count of each process on the windows platform?
Upvotes: 9
Views: 13494
Reputation: 10463
It seems that people are reluctant to give away information in this area (c++ or c# doesnt matter). so I would have probably to create my own strategy which will be probably using set of approaches rather than a rigid set of rules or recipes.
To achieve max hit/miss ratio for a Windows application I would probably:
Upvotes: 4