-
Notifications
You must be signed in to change notification settings - Fork 316
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
feat(cli): parallel scans using chunks and go routines #6820
Conversation
I'm getting the number of the cpus of the machine and divide for two. With this number, I'm calculating the size of the chunk. After this, the kics will launch a go routine for each chunk
Thanks @johnnogit for taking the initiative and sending the PR. |
@johnnogit Thank you for the PR. |
Also see #6833 |
@gabriel-cx @kaplanlior for the file cumulative1.json for the file cumulative2.json for the file cumulative3.json for the file cumulative4.json for the file cumulative5.json for the file cumulative6.json for the file cumulative7.json for the file cumulative8.json for the file cumulative9.json for the file cumulative10.json for the file cumulative11.json |
Hi @johnnogit , Thanks for this amazing contribution! Again, thank you very much for your time dedicated to this! |
Closes #6583
Proposed Changes
-use this lib https://medium.com/@dgravesa/an-openmp-inspired-approach-to-parallelizing-loops-in-go-9d2e984a488c to control the parallelism of the execution queries
-implement a flag to control the number of goroutines
-when 0 (default value) use the number of cpus
I submit this contribution under the Apache-2.0 license.