Parallelize extraction

Use the Rayon library to do parallel iteration over the file list. The
number of threads used respects the CODEQL_THREADS environment variable.
This commit is contained in:
Nick Rolfe
2020-12-22 19:04:24 +00:00
parent c35283cefb
commit bf4eac5113
4 changed files with 206 additions and 52 deletions

View File

@@ -14,3 +14,5 @@ tree-sitter-ruby = { git = "https://github.com/tree-sitter/tree-sitter-ruby.git"
clap = "2.33"
tracing = "0.1"
tracing-subscriber = { version = "0.2", features = ["env-filter"] }
rayon = "1.5.0"
num_cpus = "1.13.0"