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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

How to speed up the Rust compiler some more in 2019

38 点作者 nnethercote超过 5 年前

1 comment

wyldfire超过 5 年前
&gt; But I was able to work around this by using a trick: creating two variants of the function, one marked with #[inline(always)] (for the hot call sites) and one marked with #[inline(never)] (for the cold call sites).<p>Can&#x27;t PGO make inlining decisions like this? Otherwise, propeller&#x2F;LTO might work well.<p>&gt; But there’s a trade-off. Sometimes a simpler, smaller function is slower.<p>Without a doubt! Imagine the naive&#x2F;simple&#x2F;portable memcpy versus a target-aware one that capitalizes on wider or aligned loads and stores.