Copying from global variables to class members - C++ -


i have multiple threads instantiate same class. have no concurrency problem. question performance-wise.

i have realized accessing global variables sometime make notable difference in performance. why that? ans best practice? should copy global variables member variables? should avoid global variables if not make concurrency problems?


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -