TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Are compilation times really a problem nowdays?

3 点作者 entelechy将近 8 年前
With modern CPUs mass parallelism, hosted build services, microservices, can&#x27;t we build even large Project quickly?<p>If it compilation times are a problem for you, how did you resolve this issue and how much of an improvement did you have?

4 条评论

PaulHoule将近 8 年前
It all depends on the project.<p>Some systems have 45+ min build times. Compilation is part of it, particularly for C++ system, but a test suite that is slow to run, data-intensive steps, and bloated code repositories all contribute.<p>One of the primary motivations behind Google&#x27;s Go was the slow compile time of their C++ code base.<p>In some cases the most fundamental problem is finding the will to deal with it. With a long build it is still possible to make slow progress. Small changes might be able to speed up the build somewhat, but there is a lot of fear that rearchitecting the system to speed the build will fail, waste time, or otherwise end in tears.<p>I say rearchitecting because often it is the architecture of the system that gets in the way of fast builds. For instance, I think of a system that required automated integration (as opposed to unit) tests because (1) the system was fragile such that we couldn&#x27;t trust that a &quot;small&quot; change wouldn&#x27;t break the system and (2) there was any real plan for how certain components fit together, so we were not able to test them in isolation.
wyldfire将近 8 年前
For large projects, compilation times are still a problem, yes.<p>Modern mitigations for compilation times include: ccache&#x2F;sccache, incremental compilation, precompiled headers, &quot;modules&quot;, etc.
twobyfour将近 8 年前
Mass parallelism and hosted build services only help if you&#x27;ve got money to spend on them.<p>Microservices don&#x27;t help much when building desktop or mobile apps as opposed to web apps.<p>If you keep artifacts around, local build times can be short, but often you want to clean before doing a build to distribute beyond your own workstation&#x2F;device. Our iOS app nightly builds regularly take 45-60 min.
dClauzel将近 8 年前
Yes; I didn’t: we keep drinking coffee waiting.