-
-
Notifications
You must be signed in to change notification settings - Fork 869
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve performance with reduced execution time and lower CPU/system resource usage #2880
Conversation
…resource usage * Use global variables for logging verbose|debug logging state * Only perform debug logging steps including calculations and/or output if debugging is actually enabled * Optimise code execution and reduce resource usage by ~12% in real time, ~65% in CPU time, and ~87% in system time.
Is there any opportunity for you to run your tests / use this PR for some feedback please ? |
I probably can, but I don't expect much of a difference in the actual sync cycle duration as I'm always heavily limited by the Graph API rate limit. Will something like a graph of the CPU utilization for the onedrive process be enough for comparison? |
Anything you can do would be greatly appreciated |
I noticed my system became very sluggish for several seconds with the new build. It's because I'm using 16 onedrive threads and most of them had very high CPU utilization. But I never noticed this behavior with the previous builds. Unfortunately my original test did not monitor all CPU cores, so I have to re-do it again, which will take time. Also the new build stopped before completing the sync with the bellow message without any additional details.
I will investigate all issues further, it just takes time because each resync cycle takes me over an hour to complete. |
Very ood I would say - as #2880 / 'master' - as all that PR does is less execution when not using --verbose or debug (double --verbose) ... essentially having less processing .. so I would say something very odd with that.
If you can reproduce that at all - that would be good - i will go back and look at the change and see if I miss-edited something with that function specifically. |
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Calculations:
Command:
This PR shows significant improvements over 'master':