Rescale execution context in spec runner with CRYSTAL_WORKERS#16444
Conversation
|
NOTE: the reason we don't handle A rogue And... now I'm having second thoughts about using it in I guess unlike |
|
I suppose we could put this behind another feature flag which keeps being opt-in even when |
|
Yes, I believe it's fine for |
We shall resize the `default` execution context (parallel), not the `current` context (may be an isolated context).
When running specs with execution contexts, it's annoying to have to explicitly scale the default execution context in order to get actual parallelism. This could be handled in some kind of spec helper, but it would still require extra effort and it'd be easy to miss out on it.
Thus, I'm suggesting to resize the EC in the stdlib
specpackage (i.e. for any spec program) if the environment variableCRYSTAL_WORKERSis defined.Extracted from #16339