range-v3 icon indicating copy to clipboard operation
range-v3 copied to clipboard

Curious question about ranges and branch prediction

Open johannes-graeter opened this issue 3 years ago • 0 comments

Hi Range-v3-Team,

thx for this amazing library and bringing c++ to the next level. I was discussing with a collegue wether or not using ranges helps the branch predictor. So is it better for branch prediction to use f.e. filter over a branchy for-loop (like here https://godbolt.org/z/Tbe7eoGPx ) What is your take on that?

Best

johannes-graeter avatar Feb 11 '22 09:02 johannes-graeter