问题
I am attempting to make changes to a complex image processing app which employs some C++ code and opencv. I have noticed that its speed can vary by as much as 20% from one run to the next even without me making any changes to the code. Its as if my phone was sometimes in a good mood and other times not. I guess its probably something to do with other tasks being carried out by the phone why my app is running (please tell me if you think there are other possibilities).
I wonder if there is anything I could do to make sure the app always runs at the same speed. Perhaps doing something like give my app greater priority over other tasks? Or suppress other tasks?
来源:https://stackoverflow.com/questions/24631535/what-may-cause-the-speed-of-an-app-to-change