Skip to content
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

Change And/Or-type structures #521

Merged
merged 14 commits into from
Sep 18, 2024
Merged

Change And/Or-type structures #521

merged 14 commits into from
Sep 18, 2024

Conversation

mtshiba
Copy link
Member

@mtshiba mtshiba commented Sep 16, 2024

In this PR, Type::{And, Or}, which previously had a structure of (Box<Type>, Box<Type>), will be flattened to (Set<Type>) (however, And has a structure of (Vec<Type>) due to non-commutativity, which will be described later).
This ensures the commutativity of Or and fixes related bugs. This fix also improves performance, especially for large And/Or types. Although And types are semantically commutative, it uses Vec because it is necessary to fix the order of trials when used as overloaded types.

@mtshiba mtshiba merged commit 0408117 into main Sep 18, 2024
21 checks passed
@mtshiba mtshiba deleted the perf_or_type branch September 18, 2024 05:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant