You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@calcite.apache.org by GitBox <gi...@apache.org> on 2020/12/04 09:11:51 UTC
[GitHub] [calcite] MalteBellmann edited a comment on pull request #2291: [CALCITE-4426] Short-circuit evaluating trait set equals to improve the performance of RelSubset#getRelList (Jiatao Tao)
MalteBellmann edited a comment on pull request #2291:
URL: https://github.com/apache/calcite/pull/2291#issuecomment-738664101
Hi,
wouldn't it be easier to read and more general to implement this short-circuit in RelTraitSet#satisfies, as it is explained in the JavaDoc that "each trait set satisfies itself"?
With this change:
```
public boolean satisfies(RelTraitSet that) {
if (this == that){
return true;
}
// now the normal check...
}
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org