-
Notifications
You must be signed in to change notification settings - Fork 560
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
CPU Usage Inquisition #2074
Comments
TheTechromancer
changed the title
Purge GIL-blocking Regex Calls
CPU Optimization Inquisition
Dec 9, 2024
Top functions by average call time:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
CPU resources in the main BBOT process are extremely scarce, which clogs the event loop during larger scans. We need to prioritize finding these big offenders which are taking up a lot of CPU, and migrate them out of the main BBOT process.
Notice how in this cProfile benchmark, the very top offender is
method 'search' of 're.Pattern' objects
. This should not be anywhere near the top! Any CPU-intensive regexes should NOT be using there
library, but using our asyncifiedregex
helpers instead.The text was updated successfully, but these errors were encountered: