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

google app engine - 403 Forbidden POST - Flask WTForms -

Android layout hidden on keyboard show -

Parse xml element into list in Python -