MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/1w630ne/branchavoidant_programming/p7lbiad/?context=3
r/programming • u/fagnerbrack • Sep 03 '26
92 comments sorted by
View all comments
-2
If I read this article and it is fucking hidden vtables again, I am going to lose my mind.
Edit -
It wasn’t, but it also seems that the branch less solution was only branch less due to mapping directly to an instruction.
For me, this is really more of less saying
“Have a good idea of at least some instructions your architecture provides, and understand if your backend uses them or not.”
That’s a pretty heavy ask.
7 u/nukethebees Sep 03 '26 That’s a pretty heavy ask.Are there many popular microarchitectures which don't have conditional move instructions? ARM and x86 have them and they comprise most of the general purpose CPU market. 1 u/OSS-Corpo-Shit Sep 03 '26 It is a heavy ask because by far most developers will respond to “you should have an idea of certain easy to exploit performance idioms” with“thEReS IO InVolVeD. PRemAtURe OpTimizAtIoN.”
7
Are there many popular microarchitectures which don't have conditional move instructions? ARM and x86 have them and they comprise most of the general purpose CPU market.
1 u/OSS-Corpo-Shit Sep 03 '26 It is a heavy ask because by far most developers will respond to “you should have an idea of certain easy to exploit performance idioms” with“thEReS IO InVolVeD. PRemAtURe OpTimizAtIoN.”
1
It is a heavy ask because by far most developers will respond to “you should have an idea of certain easy to exploit performance idioms” with
“thEReS IO InVolVeD. PRemAtURe OpTimizAtIoN.”
View all comments
-2
u/OSS-Corpo-Shit Sep 03 '26 edited Sep 03 '26
If I read this article and it is fucking hidden vtables again, I am going to lose my mind.
Edit -
It wasn’t, but it also seems that the branch less solution was only branch less due to mapping directly to an instruction.
For me, this is really more of less saying
“Have a good idea of at least some instructions your architecture provides, and understand if your backend uses them or not.”
That’s a pretty heavy ask.