3 ms·
Have you thought about using the hammond distance, instead of the array? It should give you the same answer in 3 CPU instructions on registers instead of 2 arr
by ticking 11y ago
Have you thought about using the hammond distance, instead of the array?
It should give you the same answer in 3 CPU instructions on registers instead of 2 array lookups and arithmetic in ram. XOR, hammond weight/bitcount and and equality check.
- vineetg 11y agoWe actually do this in our "expensive" check. The reason that we use the 2 arrays is because in 2 array lookups, we can check for matches for all 200 guides. I probably could've made that clearer in the post - the array contains matches for ALL of the guides.