5 ms·
I have a dual core dev machine. Using -j 2 builds twice as fast (approx 35 mins -> 17 mins). Are current compiles really obligatory single thread? Because I sur
by throwaway_pdp09 7y ago
I have a dual core dev machine. Using -j 2 builds twice as fast (approx 35 mins -> 17 mins). Are current compiles really obligatory single thread? Because I sure would like to prop up intel with my wallet.
- tbrock 7y agoAnything JavaScript for example is single threaded for the most part. Also something like linking is typically in parallelized.
- chitza 7y agoMost web development toolchains depend on Node.js, which compiles on a single core.
- kohtatsu 7y agoNode takes advantage of multiple cores. The code is all async by default and that is easy to load onto green threads. This used to be implemented with callback hell, now it's Promises which is actually really cosy (and what Rust is adopting). Random article I found on it: https://medium.com/better-programming/is-node-js-really-single-threaded-7ea59bcc8d64 https://medium.com/better-programming/is-node-js-really-sing...
- oppositelock 7y agoSure, but you're also running a browser at the same time probably with a ton of tabs open as separate processes. Our computers do quite a lot these days, in parallel, and more cores help. Both AMD and Intel are ridiculously fast! You can't really go wrong with either.
- jatone 7y agowhich then shard out to multi processes, still benefitting from more cores being available. I know of at least a few build processes that support that model for node.
- benibela 7y agoFreePascal is single threaded But it is also like 10 times faster than other compilers.