MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/1w630ne/branchavoidant_programming/p7mrmug/?context=3
r/programming • u/fagnerbrack • Sep 03 '26
92 comments sorted by
View all comments
Show parent comment
10
I have to imagine it's also important for security-critical code that has to be hardened against timing attacks.
7 u/Ameisen Sep 03 '26 You either need to avoid branches or make sure that both branches always have the same cost (a difficult task taking into account branch prediction).
7
You either need to avoid branches or make sure that both branches always have the same cost (a difficult task taking into account branch prediction).
View all comments
Show parent comment
10
u/SanityInAnarchy Sep 03 '26
I have to imagine it's also important for security-critical code that has to be hardened against timing attacks.