You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 2a565a2
Browse filesBrowse the repository at this point in the historyBrowse files
Choose the checker count from CPUs and program size
The checker count was fixed at 4 because which checker checked a file
could change the results, so changing it changed the output. That is no
longer the case, and with checkers taking files from each other it only
trades time for memory, so the default can follow the machine.
Checking is fastest with about one checker per CPU, until the work
every checker duplicates (library and shared types) outweighs what
another checker adds. Measured on 4 and 8 CPUs, one checker per logical
CPU was fastest for nearly every project, hyperthreads included; on 20
CPUs, 8 checkers were fastest for most projects, and only very large
programs gained up to 12-16. So the default is one checker per CPU, up
to 8, rising with the square root of the checked work up to 16, and no
more than one per 32 checked files, but at least the 4 of before when
there are as many CPUs. Files whose checking is skipped, such as
declaration files under skipLibCheck, count for nothing.
Build mode divides the CPUs among the projects it builds concurrently,
but never gives a project fewer than the 4 checkers of before, since
projects that depend on each other are built one at a time.
Copy file name to clipboardExpand all lines: tsc/internal/diagnostics/diagnosticMessages.generated.json
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1696,6 +1696,7 @@
1696
1696
"Set_the_number_of_projects_to_build_concurrently_6938": "Set the number of projects to build concurrently.",
1697
1697
"Deduplicate_packages_with_the_same_name_and_version_6939": "Deduplicate packages with the same name and version.",
1698
1698
"Allow_loading_external_content_mapper_plugins_that_execute_code_during_compilation_6940": "Allow loading external content mapper plugins that execute code during compilation.",
1699
+
"Based_on_the_available_CPUs_and_the_size_of_the_project_unless_singleThreaded_is_passed_6941": "Based on the available CPUs and the size of the project, unless --singleThreaded is passed.",
1699
1700
"Variable_0_implicitly_has_an_1_type_7005": "Variable '{0}' implicitly has an '{1}' type.",
1700
1701
"Parameter_0_implicitly_has_an_1_type_7006": "Parameter '{0}' implicitly has an '{1}' type.",
1701
1702
"Member_0_implicitly_has_an_1_type_7008": "Member '{0}' implicitly has an '{1}' type.",
0 commit comments