This is moving away from 10 different logical tests to just checking signs of differences in pairs for concordant and discordant pairs, which nets us a speedup of 4X over the previous implementation, which is not bad for a couple of days work to get it just right.
This is moving away from 10 different logical tests to just checking signs of differences in pairs for concordant and discordant pairs, which nets us a speedup of 4X over the previous implementation, which is not bad for a couple of days work to get it just right.