❝HN 片单

"Simple Code" Follow-up Part 1: A (Very) Simplified CPU Diagram

Molly Rocket · 2 位 HN 用户推荐 · 2022–2022

  1. The timing of this is great! I just watched Casey Muratori's lecture, "Simple Code, High Performance"[1] and its follow-up videos[2, 3]. I highly recommend watching it. It is about Software Optimization, and gives practical and high-level understanding of topics like CPU Architecture, SIMD etc. [1] [link] [2] [link] [3] [link]
    — mrv_asura, 2022
  2. The conditional move is not really branching in the classic meaning of the word, because there is no jump (the instruction pointer unconditionally moves forward to the next instruction). Branches, even well-predicted ones, can hurt performance, especially if the jumped to code is not in cache (needs to be fetched). More detail can be found in this nice top-to-bottom video from Casey Muratori, whi
    — dundarious, 2022

← HN 片单