-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat!: Use ConvexChecker in CircuitMatch. #77
Conversation
BREAKING CHANGE: CircuitMatcher::find_rooted_matches is no longer public.
31ae721
to
7968766
Compare
Benchmarks have improved by 50-75%...
|
.collect() | ||
} | ||
|
||
/// Find all convex pattern matches in a circuit rooted at a given node. | ||
pub fn find_rooted_matches<'a, 'm, C: Circuit<'a>>( | ||
fn find_rooted_matches<'a, 'm, C: Circuit<'a>>( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Was there any reason for the rooted match to pub before?
Would a user care about matching on an specific root?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is currently no way for the user to choose the root of a pattern themselves, so being able to find rooted matches is pretty pointless. In hindsight it should never have been public.
BREAKING CHANGE: CircuitMatcher::find_rooted_matches is no longer public.
BREAKING CHANGE: CircuitMatcher::find_rooted_matches is no longer public.