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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: When do you start thinking about performance in new projects?

4 点作者 JCDenton2052将近 8 年前

3 条评论

cocktailpeanuts将近 8 年前
I can assure you: If you&#x27;re asking this question, you are far from that point.<p>Nowadays you can host projects on services like aws, heroku, etc. and they have pretty good performance right out of the box. You will rarely reach a point where performance is a huge issue.<p>This may happen if you hit the HN front page, get covered by the NYTimes, etc. but even then, you could just spin up some dynos to handle it temporarily and think about if this is just a spike or an actual growth. In 99% of the cases it&#x27;s just a spike and you&#x27;ll be back to normal the next day.<p>If you DO reach the point where performance becomes important, that probably means you have enough users. And in the worst case you could even ask your users for help. But if you&#x27;re doing this well, you can really just tweet for help and many people will try to help you.<p>TLDR: Don&#x27;t optimize until you get to a point where it becomes painfully obvious that you MUST optimize.
flukus将近 8 年前
For my own projects: Straight away to an extent. I take pride in making things work fast, within reason.<p>For work: I just try to avoid making things slow out of stupidity by avoiding things likes n+1 queries. On modern hardware this get&#x27;s you to the &quot;good enough&quot; point. In enterprise software no one paying me has every cared about performance, they don&#x27;t have a problem if it takes 15 seconds to load a page showing 10 items for instance, they certainly won&#x27;t pay me to get that 500ms request down to 30ms.<p>And that&#x27;s why commercial software is so slow and bloated, no one will pay a cent to make it otherwise.
slackingoff2017将近 8 年前
If it&#x27;s a concern just use a language that&#x27;s within an order of magnitude of C and don&#x27;t write anything exceedingly stupid.<p>Java, C#, Golang, and Node are all fast enough that you could run 99.9% of the sites on the internet with a single machine.