I am developing a program which priority is speed. The program is large and use a lot of datas. Many of them are stored as global variables.
I have read that global variables are slow access, as the processor don't store in the L2 cache. I have been thinking on it, but don't know exactly how to treat this issue. Most optimization techniques web pages I seen only give tips for speed code saving cycles, but none talk about accessing memory in an efficient way. I think this problem is not only for global variables, but all.
How can I address this problem? what are faster ways to access data.....