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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Erlang’s sweet spot

1 点作者 rayvega超过 15 年前

1 comment

kscaldef超过 15 年前
&#62; I don’t have numbers to prove this, but the Erlang implementation can also be made faster with a lot less effort since each recursive call can be run in parallel.<p>Ugh... untrue. Process creation is cheap in Erlang, but it's not that cheap. Naively parallelizing each recursive call loses big time. (And, yes, I've benchmarked this.)<p>You can get some gain by parallelizing the first couple recursive calls (up to the number of cores you have available) and then running the rest serially, but that uglifies the code quite a bit. And you're still not going to be as fast as the in-place C version.