4 ms·
>so if you're going to be compiling code it's totally worth it. This always gets brought up as a use case, but how many people are building non-trivial codebas
by gruez 7y ago
>so if you're going to be compiling code it's totally worth it.
This always gets brought up as a use case, but how many people are building non-trivial codebases where compile times matter? If build times are under 5s, near perfect parallelization only nets you a 1.25s gain between 3700x and 3600.
- durandal1 7y agoAny decently sized C++ or Swift code base is going to have compile times way over 5s. Many just moderately sized projects have build times over 10 minutes.
- gruez 7y agoThis is for a full rebuild, right? If you're changing a few files it shouldn't have to recompile + relink everything.
- smueller1234 7y agoFor moderate to large projects, link time can be a huge factor even for incremental builds. It might be that faster IO is the better investment, though.
- londons_explore 7y agoMy current codebase is 28 hours for a full build on one machine... I dread having to update the compiler or some core "used nearly everywhere" header file, and wait a whole another 28 hours...
- troynt 7y agoMost web developers. Webpack + typescript compiling and bundling all the assets. You want to see a preview as quickly as possible. Best if you can keep a live view on a second monitor.
- samhh 7y agoI doubt much of this is parallelised. Would love to be wrong though!
- filoleg 7y agoCannot speak for everyone, but the builds of my team are heavily parallelized, and we aren't even running a monorepo. For any non-trivial project that has its own somewhat complex build pipeline with many internal dependencies and such, it is pretty much a given. The only scenario I can foresee where people wouldn't be doing parallel builds is if they are just working on their personal side project with no other people involved, where the need for parallel builds is non-existent either way. You don't want to have one giant monolith project for your whole complex web app, it becomes a nightmare very quickly.
- philsnow 7y agois any of that compute-bound? I would imagine that it's mostly I/O-bound.
- noelherrick 7y agoMy CPU definitely spikes when compiling JS.