diff --git a/change-notes/1.20/extractor-javascript.md b/change-notes/1.20/extractor-javascript.md index 5027573f30b3..b233e167faf7 100644 --- a/change-notes/1.20/extractor-javascript.md +++ b/change-notes/1.20/extractor-javascript.md @@ -18,7 +18,7 @@ ## Changes to code extraction -* Extraction of JavaScript files (but not TypeScript files) on LGTM is now parallelized. By default, the extractor uses as many threads as there are processors, but this can be overridden by setting the `LGTM_INDEX_THREADS` environment variable. In particular, setting `LGTM_INDEX_THREADS` to 1 disables parallel extraction. +* Parallel extraction of JavaScript files (but not TypeScript files) on LGTM is now supported. The `LGTM_THREADS` environment variable can be set to indicate how many files should be extracted in parallel. If this variable is not set, parallel extraction is disabled. * The extractor now offers experimental support for [E4X](https://developer.mozilla.org/en-US/docs/Archive/Web/E4X), a legacy language extension developed by Mozilla. * The extractor now supports additional [Flow](https://flow.org/) syntax. * The extractor now supports [Nullish Coalescing](https://github.com/tc39/proposal-nullish-coalescing) expressions. diff --git a/javascript/extractor/src/com/semmle/js/extractor/AutoBuild.java b/javascript/extractor/src/com/semmle/js/extractor/AutoBuild.java index 5d0b10361f9f..db865c97e0ca 100644 --- a/javascript/extractor/src/com/semmle/js/extractor/AutoBuild.java +++ b/javascript/extractor/src/com/semmle/js/extractor/AutoBuild.java @@ -69,7 +69,7 @@ *
LGTM_INDEX_TYPESCRIPT: whether to extract TypeScript
* LGTM_INDEX_FILETYPES: a newline-separated list of ".extension:filetype" pairs
* specifying which {@link FileType} to use for the given extension
- * LGTM_INDEX_THREADS: the maximum number of files to extract in parallel
+ * LGTM_THREADS: the maximum number of files to extract in parallel
* LGTM_TRAP_CACHE: the path of a directory to use for trap caching
* LGTM_TRAP_CACHE_BOUND: the size to bound the trap cache to
*
@@ -163,9 +163,9 @@
* following environment variables are available:
*
* LGTM_INDEX_THREADS determines how many threads are used for parallel
+ * LGTM_THREADS determines how many threads are used for parallel
* extraction of JavaScript files (TypeScript files cannot currently be extracted in
- * parallel). If left unspecified, the extractor uses as many threads as there are cores.
+ * parallel). If left unspecified, the extractor uses a single thread.
* LGTM_TRAP_CACHE and LGTM_TRAP_CACHE_BOUND can be used to specify
* the location and size of a trap cache to be used during extraction.
*