Skip to main content

pair_of

Function pair_of 

Source
pub fn pair_of(left: u64, right: u64) -> u64
Expand description

The same pair hash for two values whose hashes are already known.

Testing every pair of a 105 column table is 5,460 pairs, and hashing the two values again for each of them would hash every value of every column 104 times over. Hashing each column once a row and combining the results here is the same answer for a hundredth of the work, and it is the only way a pass over hits that tests all the pairs finishes in an afternoon.