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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: Building a fast PC for development (JS)

2 点作者 ivanyv将近 3 年前
I&#x27;ve been pondering building a dedicated server for my development work.<p>Building a Vue app on my Windows laptop (i7-9750H 64GB RAM) takes ~35s in WSL. I wanted to see if I could improve that down to 10s or so. So I spun up some test cloud machines, including a DO droplet with 64 GB of RAM, 32 CPUs, and two SSDs, running Ubuntu 20.04.<p>Time on that machine: ~23s<p>Given how expensive that server is, I&#x27;m not hopeful, and it&#x27;s a shameful state of software development ecosystems if you ask me... but I digress. Does anyone have any recommendations on what an optimized build system would look like?

3 条评论

esperent将近 3 年前
&gt; Building a Vue app on my Windows laptop (i7-9750H 64GB RAM) takes ~35s in WSL<p>I would look into improving your build before buying new hardware. I&#x27;m not at all familiar with Vue but I have been working on a large monorepo based on NW which contains 5 large Angular projects and one large React project (not my choice to combine them).<p>The initial build probably take 20s but subsequent changes take &lt;1s to the point that HMR feels instant. My laptop specs are similar to yours except only 16gb ram. This is a large Typescript project so I cannot understand what kind of monster would take 32s for incremental builds. There&#x27;s probably some major improvements to be gained by updating the build (e.g. switch to ESBuild).
评论 #32246640 未加载
duped将近 3 年前
Throwing hardware at performance problems is a fallacy most of the time. At least when you have the knobs to turn at your disposal, like in software development.<p>Benchmark your build to understand why it&#x27;s slow. The first thing that jumps out to me is you&#x27;re using WSL which has non negligible penalties in a few cases. Have you tried dual booting into Linux and running everything natively?<p>Once you do: benchmark!<p>It sounds like hardware isn&#x27;t the problem here, but your tool chain. I don&#x27;t know enough about it to give insight but it&#x27;s worthwhile analyzing and googling to see what is taking so long and how to make it faster.
评论 #32256005 未加载
gabelschlager将近 3 年前
Try building outside WSL. I had the same problem, but moving the app to standard Windows improved the startup times from ~30s down to ~10s. Never bothered figuring out what caused the differences.