We should consider:
- compiling hooks in parallel
- running hooks in parallel
We should be really optimizing for compile times in dart build / flutter build, e.g. if the package graphs depth is 30 and all of them use hooks, saving a single second (e.g. via parallel compile of hooks to kernel) would save half a minute for a developer.
Originally posted by @mkustermann in #1256 (comment)
The initial prototype was running hooks in parallel, but it locked up someones machine (back then compiling for all targets concurrently). So maybe we should consider limiting the parallelism.
If we intend parallelism to the number of cores on the machine, then we should consider that hooks might use more than one core. Some build systems allow cooperative scheduling:
More conservatively, we could consider only compiling hooks in parallel.
We should consider:
Originally posted by @mkustermann in #1256 (comment)
The initial prototype was running hooks in parallel, but it locked up someones machine (back then compiling for all targets concurrently). So maybe we should consider limiting the parallelism.
If we intend parallelism to the number of cores on the machine, then we should consider that hooks might use more than one core. Some build systems allow cooperative scheduling:
More conservatively, we could consider only compiling hooks in parallel.