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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Introduction to Low Latency Programming: Minimize Branching and Jumping

4 点作者 dgski大约 1 年前

1 comment

h2odragon大约 1 年前
&gt; Regardless, a good compiler will use CMOV when it can, even for if statements<p>I wouldn&#x27;t count on it: watch what the compiler outputs closely, and if it matters go ahead and go to ASM instead of playing games with delicate dependencies on specific behaviors of specific versions of certain compilers. GCC 2.95 ring bells?<p>To do otherwise is writing the ASM with the compiler as a code generator <i>that you do not control</i>. Like tying reins to a steering wheel and driving from the trailer, instead of the front seat. Fun but sloppy.