Function address_eq

Source
pub fn address_eq(a1: &Address, a2: &Address) -> bool
Expand description

Custom implementation of equality for Address.

The implementation compares the address in 4 chunks of 8 bytes (u64 values), which is currently more efficient (CU-wise) than the default implementation.

This isn’t the implementation for the PartialEq trait because we can’t do structural equality with a trait implementation.

Issue #345 contains more information about the problem.