Threadwell

Recent Notes

  • DemetriSpanos

    Oct 06, 2026

    • archive
    • twitter
    • demetrispanos
  • NOTimothyLottes

    Oct 06, 2026

    • archive
    • twitter
    • notimothylottes
  • bonzajplc

    Oct 06, 2026

    • archive
    • twitter
    • bonzajplc
Home

❯

Archive

❯

Threads

❯

nicbarkeragain

❯

"Branchless Programming" is a term used to describe a programming style that improves performance by avoiding branches (e.g.

❯

@nicbarkeragain It's good inside hot loops and shaders.

@nicbarkeragain It's good inside hot loops and shaders.

Properties5
typearchive
sourcetwitter
date2025-07-22
tagsarchive, twitter, nicbarkeragain
description@nicbarkeragain It's good inside hot loops and shaders.

Jul 22, 20251 min read

  • archive
  • twitter
  • nicbarkeragain

Source

  • URL: https://x.com/_benwick/status/1947678617091068140
  • Author: Benwick (@_benwick)
  • Posted: 2025-07-22 15:22:23

Branch

1/ @_benwick

@nicbarkeragain

It’s good inside hot loops and shaders. But it’s not a cure all. Branch-prediction in large codebases means a CPU can ignore entire sections of nested if statements without testing every single one every time.

Related

  • Spine: 2025-07-22-branchless-programming-is-a-term-used-to-describe

Graph View

  • Source
  • Branch
  • Related

Backlinks

  • "Branchless Programming" is a term used to describe a programming style that improves performance by avoiding branches (e.g.

Created with Quartz v5.0.0 © 2026

  • GitHub