Another fantastic version to look at. Faster just got bigger and faster. I just got this one today from Hugo Dufort. Simon's sprite6c clocked in at 12.31 seconds to complete 10,000 iterations. This new routine is coming in at 11.78 seconds. Nice!
Hugo describes himself as an algorithm-oriented guy, very fond of discrete maths and logic. As such, he drew up a couple decision trees. One is shown here.
Finally, the code.
Copyright © 2020, Lee Patterson