Possible conditional check error - page 6

 
amrali:

As I said before, this simple loop became so unreadable. You sacrifice readability for a neglible gain in performance. It deos NOT worth it.

A simple if..else statement plus compiler optimizations and hardware branch predictors wins at the end.

At least an order of magnitude (10x) gain in performance is considered good.

I know Amrali, it's just for fun.

 
Alain Verleyen:

I know Amrali, it's just for fun.

I enjoyed it. Thanks Alain