HFT CORE SYSTEMS

Branch prediction and data-dependent control flow

Lesson 13 of 96Phase 02: CPU and memory systems
Video lesson coming soon

The written objectives and hands-on lab are available now.

cppvalley on YouTube ↗

Learning objectives

What you should understand

  1. Explain predictors without treating branches as universally bad
  2. Measure predictable and input-dependent branches
  3. Choose branchless transformations only when evidence supports them

Lab

Hands-on exercise

Compare branchy and branchless classification across input distributions.

Deliverable

Evidence of completion

A distribution-sensitive result with branch-miss counters.

Prerequisite
EP 12

Phase 02

CPU and memory systems

Full curriculum