Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
zabzonk
on Sept 20, 2020
|
parent
|
context
|
favorite
| on:
The Little Things: Speeding up C++ compilation
One of (many) other ways to speed up C++ (or C) builds is to use multi-processing in your make file -
https://stackoverflow.com/questions/414714/compiling-with-g-...
- I typically get about a 20% speed up, but obviously YMMV.
bla3
on Sept 20, 2020
|
next
[–]
This post here recommends using ninja, which does this automatically.
wetmelon
on Sept 21, 2020
|
parent
|
next
[–]
Personally I like Tup, which also does this, and has no dependencies, but it has some quirks.
saagarjha
on Sept 20, 2020
|
prev
[–]
Careful, this can break certain makefiles that are not written to take this into account.
zabzonk
on Sept 20, 2020
|
parent
[–]
Perhaps post a link to this problem?
saagarjha
on Sept 22, 2020
|
root
|
parent
[–]
You should be able to find a fair amount of published literature about it if you search "make parallel build issues".
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: