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
We just enabled MT in #16380, but we can go further and enable execution context as suggested in the PR, by merely resizing the default context to the default workers count.
Also changes the default `--threads` value to also be the default workers count, which is `CRYSTAL_WORKERS` when specified and valid, and defaults to the number of available logical CPUs instead of being hardcoded to 4 threads (default for `preview_mt`) or 8 forked processes (arbitrary number).
It might be faster, on my computer recompiling Crystal went from ~17s to ~15s but your mileage may vary.
Copy file name to clipboardExpand all lines: Makefile
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,7 @@ check ?= ## Enable only check when running format
37
37
order ?=random ## Enable order for spec execution (values: "default" | "random" | seed number)
38
38
deref_symlinks ?= ## Dereference symbolic links for `make install`
39
39
docs_sanitizer ?= ## Enable sanitization for documentation generation
40
-
sequential_codegen ?=$(if$(filter 0,$(supports_preview_mt)),true,)## Enforce sequential codegen in compiler builds. Base compiler before Crystal 1.8 cannot build with `-Dpreview_mt`
40
+
sequential_codegen ?=$(if$(filter 0,$(supports_preview_mt)),true,)## Enforce sequential codegen in compiler builds. Base compiler before Crystal 1.8 cannot build with `-Dpreview_mt -Dexecution_context`
0 commit comments