r/programming • • Sep 03 '26

Branch‑Avoidant Programming

https://easylang.online/blog/branchless
254 Upvotes

92 comments sorted by

View all comments

Show parent comment

4

u/chkas Sep 03 '26 edited Sep 05 '26

Usually that's not an option. If the problem itself involves unpredictable data - such as the partitioning of (random) data in quicksort - you can't simply make the branches predictable. You have to deal with the unpredictability.

1

u/meamZ Sep 03 '26

Sure but my point is that it's not mainly about minimizing branches, it's about minimizing unpredictable branches...