<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Branch-Prediction on Jasper</title><link>https://jasper-aa64.github.io/zh/tags/branch-prediction/</link><description>Recent content in Branch-Prediction on Jasper</description><generator>Hugo</generator><language>zh-CN</language><lastBuildDate>Fri, 09 Oct 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://jasper-aa64.github.io/zh/tags/branch-prediction/index.xml" rel="self" type="application/rss+xml"/><item><title>交易系统笔记 #7:分支预测与分支优化</title><link>https://jasper-aa64.github.io/zh/posts/branch-prediction-branch-optimization/</link><pubDate>Fri, 09 Oct 2026 00:00:00 +0000</pubDate><guid>https://jasper-aa64.github.io/zh/posts/branch-prediction-branch-optimization/</guid><description>前端每个周期都要取指令，可一条分支要十几个周期后才算出往哪走，所以只能先猜。猜对几乎不花钱，猜错要把之后的活全部扔掉，约 15–20 个周期。同一条 if，数据有规律就猜得准，随机就只能猜对一半；而编译器可能早已把它变成了 cmov。</description></item></channel></rss>