2026年7月30日 · 星期四
● 每日更新·改变自己
Eurekar·TOP
捕捉真实世界的英语信号
25信息来源
8,216精选文章
167单词卡片
18照片图片
全部6,477口语2,048免费395新闻1,599帖子1,379hackernews658tmz458techmeme456随笔323slashdot309外刊291arstechnica230techcrunch218Cards167simonwillison73动态69bloomberg54sethgodin43图片18youtube7
← 返回

你的代码速度很快——如果你幸运的话

2026-07-12 hackernews

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

Your code is fast – if you're lucky

你的代码速度很快——如果你幸运的话

HN Points: 109 / 74 comments | Author: chrka | HN Discussion: item?id=48870799 | Source: tiki.li

Original Article

Recently, while I was working on an optimized Quicksort implementation, I came across a rather interesting quirk. Modern compilers (especially Clang) optimize loops using fast, branch-free instructions - provided you use the right programming style.

⋯ 继续阅读请登录会员 ⋯

🔒

MEMBERS ONLY

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

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

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

了解会员 →

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

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