public boolean fastEquals(TreeNode other) {
        return this == other || this.equals(other);
    }
Faster version of equality which short-circuits when two treeNodes are the same instance.
We don't just override Object.equals, as doing so prevents the scala compiler from
generating case class `equals` methods
indexr-query-opt/src/main/java/io/indexr/query/TreeNode.java