Skip to content

Commit d85ac4b

Browse files
aykevldeadprogram
authored andcommitted
builder: parallelize most of the build
This commit parallelizes almost everything that can currently be parallelized. With that, it also introduces a framework for easily parallelizing other parts of the compiler. Code for baremetal targets already compiles slightly faster because it can parallelize the compilation of supporting assembly files. However, the speedup is especially noticeable when libraries (compiler-rt, picolibc) also need to be compiled: they will be compiled in parallel next to the Go files using all available cores. On my dual core laptop (4 cores if you count hyperthreading) this cuts compilation time roughly in half when compiling something for a Cortex-M board after running `tinygo clean`.
1 parent 3010466 commit d85ac4b

File tree

5 files changed

+517
-232
lines changed

5 files changed

+517
-232
lines changed

0 commit comments

Comments
 (0)