Skip to content
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

Multi thread detection #68

Merged
merged 4 commits into from
Mar 5, 2024

Conversation

ClementCaporal
Copy link
Contributor

@ClementCaporal ClementCaporal commented Mar 5, 2024

Should close #67

I propose to use concurrent.futures.ThreadPoolExecutor along with the already existing cfg.SYSTEM.NUM_WORKERS to speed up the process of detection.

On my setup for 5.88 GB:

  • 1 worker: >12 minutes 35 seconds
  • 30 workers: 1 minutes 20 seconds

@danifranco Can you double check if the new documentation for cfg.SYSTEM.NUM_WORKERS is not too vague now?

@danifranco
Copy link
Collaborator

Wow, super useful feature Clement, thanks a lot. SYSTEM.NUM_WORKERS as you changed I think it's good, so don't worry. I'm merging this code now!

@danifranco danifranco merged commit e809368 into BiaPyX:master Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Detection could be multi threaded
2 participants