diff options
| author | Jeff Epler <jepler@gmail.com> | 2020-10-11 15:19:55 -0500 |
|---|---|---|
| committer | Jeff Epler <jepler@gmail.com> | 2020-10-11 20:19:59 -0500 |
| commit | 607e4a905ae8654bd8450ae137ffa24367039277 (patch) | |
| tree | cbccedd230c214819de0acad5fecdcf52ca083b2 /docs/autoapi | |
| parent | 70a94c8d2dec709e6692a89131f04e05b81bcae0 (diff) | |
build: parallelize the creation of qstr.i.last
Rather than simply invoking gcc in preprocessor mode with a list of files, use
a Python script with the (python3) ThreadPoolExecutor to invoke the
preprocessor in parallel.
The amount of concurrency is the number of system CPUs, not the makefile "-j"
parallelism setting, because there is no simple and correct way for a Python
program to correctly work together with make's idea of parallelism.
This reduces the build time of stm32f405 feather (a non-LTO build) from 16s to
12s on my 16-thread Ryzen machine.
Diffstat (limited to 'docs/autoapi')
0 files changed, 0 insertions, 0 deletions
