Skip to content

cmd/compile: parallelize compilation #15756

@randall77

Description

@randall77

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions