Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
masklinn
on Dec 31, 2022
|
parent
|
context
|
favorite
| on:
CPU branch prediction evolution over years (2017)
> Avoiding either > Easily predicted branch
Branchless code can easily out-cost a well-predicted branch (and its content if any).
taeric
on Dec 31, 2022
|
next
[–]
This is where I was trying to use sorting networks as a fun example. Without independent compare/swap units, they will go slower than sequential sorting. Despite not necessarily "branching."
mhh__
on Dec 31, 2022
|
prev
[–]
Of course, perhaps this should be reduced to "keep an eye out for silly branches"
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
Branchless code can easily out-cost a well-predicted branch (and its content if any).