2026年8月6日 · 星期四
● 每日更新·改变自己
Eurekar·TOP
捕捉真实世界的英语信号
25信息来源
10,499精选文章
168单词卡片
18照片图片
全部7,114口语2,068免费780帖子3,025新闻1,599hackernews797tmz616techmeme532slashdot379随笔323techcrunch295外刊291arstechnica288Cards168simonwillison100动态69bloomberg59sethgodin50图片18youtube7
← 返回

无分支Rust:通过移除If让过滤器速度快4倍

2026-08-06 hackernews

← 上一篇返回列表下一篇 →

Branchless Rust: Making a Filter 4x Faster by Removing an If

无分支Rust:通过移除If让过滤器速度快4倍

HN 225 分 · 69 条评论 · 作者 greyblake · 来源 www.greyblake.com · HN 讨论

【摘要】

原文抓取失败,摘要暂不可用,请访问原文链接。

【评论】共 82 条 · 按 HN 热度顺序 · 楼中楼缩进展示

1L @anematode · 2026-08-06 12:03

Nice post!

You can do even a bit better if you're willing to use intrinsics. In particular this kind of operation is well-suited for compress-type operations, available as a first-class operation in at least AVX512, SVE and RVV; you can also emulate them reasonably quickly on NEON and AVX2.

⋯ 继续阅读请登录会员 ⋯

🔒

MEMBERS ONLY

这篇是会员专享内容,你看到的是预览段。

会员每天解锁 6000+ 篇真实英语素材——双语科技、口语、外刊、单卡,不设上限。

年会员 ¥365 —— 一天一块钱,续费一直能用。

了解会员 →

已是会员?点此登录解锁全文。

← 上一篇返回列表下一篇 →