Y
Hacker News
new
|
ask
|
show
|
jobs
by
cmrdporcupine
1097 days ago
Bounds check out of the tight loop can give the possibility of the compiler dropping bounds check and/or related branches later.
1 comments
menaerus
1090 days ago
This sounds purely theoretical. And still even if compiler would be able to coalesce multiple branches into less, such branchy code still cannot be faster than the branchless one.
link