Source

Branch

1/ @Jatin_exe

I love how well articulated this post is!

…Counter that by counting the NUMBER OF BRANCHES. A branch is: an “if”, a “match”, a “case”. That’s THE complexity of your program..

Could we do this better by measuring the properties of the IR graph from the code

Maybe we need to aim for kolmogorov compression

2/ @VictorTaelin

@Jatin_exe

no

number of branches. period.

3/ @Jatin_exe

@VictorTaelin

What if it starts doing branchless programming as a reward hack

4/ @henryzom

@Jatin_exe @VictorTaelin

Yay performance

5/ @Jatin_exe

@henryzom @VictorTaelin

You can have a very bad performance code with zero branches compared to good perf with branches (I think )

If you take it to the extreme and try to minimize only the no of branches to the least you can get, will be interesting to see how it works