We should be able to parallelize large parts of cmd/compile to make builds faster.
Parsing could be done in parallel on multiple files in a package.
Typechecking may be parallelizeable to some extent, I'm not sure.
Things like escape analysis might have to remain serial.
Compiling functions (order+walk+SSA+obj) can easily be done on each function in parallel. My only concern is making sure we don't use too much memory.
For all of these changes, we'd need to de-globalize the current compiler.
See also #9887 #15736
@josharian
We should be able to parallelize large parts of cmd/compile to make builds faster.
Parsing could be done in parallel on multiple files in a package.
Typechecking may be parallelizeable to some extent, I'm not sure.
Things like escape analysis might have to remain serial.
Compiling functions (order+walk+SSA+obj) can easily be done on each function in parallel. My only concern is making sure we don't use too much memory.
For all of these changes, we'd need to de-globalize the current compiler.
See also #9887 #15736
@josharian