I found a way to optimize your code without affecting the result. By making it branchless, I was able to get my CPU to 100% utilization!
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I found a way to optimize your code without affecting the result. By making it branchless, I was able to get my CPU to 100% utilization!