reddit-place-script-2022
reddit-place-script-2022 copied to clipboard
Exessive CPU usage when there is no pixels to place
Bug Report Form
Checklist
- [Y] I am using the latest version of the code.
- [Y] I am absolutely sure I read the README in its entirety.
- [Y] I have made sure this is not a duplicate issue.
- [Y] I have filled out this form correctly.
Describe the bug
when there are pixels that haven't been placed yet, my CPU usage is at 1-2%, when all pixels are placed, it jumps to 10-11%
To Reproduce
Steps to trigger the bug:
- launch bot so that what it tries to make is already complete
- look at task manager
Additional context
Add any other context about the problem here.
Can confirm.
The CPU usage is really high even when script doesn't do anything (waits for pixels to be changed). When the code first start the CPU sits at 100%, then after a 5-10 minutes goes to 200%
This is CPU usage of two scripts from double core hetzner VPS. One with 5 accounts, other with 20. (The script with 5 accounts is running with debugger mode)
#398 Fixes this issue!
@PROMETHEUS7777 please confirm and close the issue