• 0 Posts
  • 4 Comments
Joined 1 year ago
cake
Cake day: June 30th, 2023

help-circle



  • How often does branchless programming actually matter in the day to day life of an average developer?

    Barely never. When writing some code that really has to be high performance (i.e. where you know it slows down your program), it can help to think about if there are branches or jumps that you can potentially simplify or eliminate.

    Of course some things are often branchless, for example GPU shaders, which need very high performance and which usually always do the same things. But that’s an exception.