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
Post a Comment