You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the data collection logic is running on Dispatchers.Main
As it runs every 13ms, it is in interest of efficiency that we make it quicker. Got to look in if we spawn a coroutine of the same Dispatcher in a given coroutine, whether they run separate threads or they run parallelly.
The data collection should be done in an separate coroutine.
Any improvement in this regard would bring down the data collection interval.
Possibly we can see the time taken by different operations and keep only less processor intensive processes in the while(true) loop, and keep processor intensive processes in another coroutine, running continuously. Perhaps can mutableList and replace it with ArrayList, or keep it in an temp var and append it in another coroutine?
The text was updated successfully, but these errors were encountered:
Currently the data collection logic is running on Dispatchers.Main
As it runs every 13ms, it is in interest of efficiency that we make it quicker. Got to look in if we spawn a coroutine of the same Dispatcher in a given coroutine, whether they run separate threads or they run parallelly.
The data collection should be done in an separate coroutine.
Any improvement in this regard would bring down the data collection interval.
Possibly we can see the time taken by different operations and keep only less processor intensive processes in the while(true) loop, and keep processor intensive processes in another coroutine, running continuously. Perhaps can mutableList and replace it with ArrayList, or keep it in an temp var and append it in another coroutine?
The text was updated successfully, but these errors were encountered: