Skip to content

Commit

Permalink
perf(ops): early return if two nodes do not hash to the same value
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud committed Sep 15, 2023
1 parent 0b49c96 commit b0b62cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ibis/common/grounds.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ def __hash__(self) -> int:
return self.__precomputed_hash__

def __equals__(self, other) -> bool:
return self.__args__ == other.__args__
return hash(self) == hash(other) and self.__args__ == other.__args__

@property
def args(self):
Expand Down

0 comments on commit b0b62cc

Please sign in to comment.