MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/1w630ne/branchavoidant_programming/p7k6989/?context=3
r/programming • u/fagnerbrack • 1d ago
87 comments sorted by
View all comments
3
in general, in data oriented programming, I just generate data, which is another way to avoid branching.
It's always faster to cache things even if it uses a lot of memory, instead of re-generate stuff when a lot of branching is involved
using arithmetics to generate an index is also a good way to avoid branching
3
u/all_is_love6667 23h ago
in general, in data oriented programming, I just generate data, which is another way to avoid branching.
It's always faster to cache things even if it uses a lot of memory, instead of re-generate stuff when a lot of branching is involved
using arithmetics to generate an index is also a good way to avoid branching