I have multiple threads that instantiate the same class. I have NO concurrency problem. My question is performance-wise.
I have realized that accessing global variables sometime make a notable difference in performance. Why is that? ans what is the best practice? Should I copy the global variables to some member variables? Should I avoid global variables even if they do not make concurrency problems?