Skip to content

Conversation

@iksnagreb
Copy link
Contributor

No description provided.

Signed-off-by: Christoph Berganski <christoph.berganski@gmail.com>
@codecov
Copy link

codecov bot commented Dec 21, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 70.09%. Comparing base (20a99d1) to head (b0ffb28).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2741   +/-   ##
=======================================
  Coverage   70.09%   70.09%           
=======================================
  Files         226      226           
  Lines       27388    27389    +1     
  Branches     2781     2781           
=======================================
+ Hits        19198    19199    +1     
  Misses       7234     7234           
  Partials      956      956           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@justinchuby
Copy link
Collaborator

@gramalingam do you see potential performance impact with this change?

return len(self._outputs)

def commute(self) -> Sequence[GraphPattern]:
# List all commutative elementwise (binary) operators for which we
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is fine ... but, please note that the existing implementation can lead to an exponential increase in the number of patterns that are checked, with efficiency implications. (The underlying implementation needs to be improved: for example, now that there is support for disjunctive (OR) patterns, it may be useful to use that instead of creating many patterns.)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we make commute rewrite the pattern into disjunctive patterns instead?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Development

Successfully merging this pull request may close these issues.

3 participants