Skip to content
This repository was archived by the owner on Feb 12, 2022. It is now read-only.

Merge adjacent JOIN_GENERATORS with the same path conditions #2623

Conversation

tiagovtristao
Copy link
Contributor

Release notes: Adjacent JOIN_GENERATORS with same path conditions are now merged for optimization.

This pull request attempts to tackle #2565. Some assumptions were made (for lack of certainty) but commented on for further improvement.

@@ -41,6 +41,32 @@ export class PathConditionsImplementation extends PathConditions {
this._failedNegativeImplications = undefined;
}

// It makes the strong assumption that, in order for 2 path conditions to be equal,
Copy link
Contributor

Choose a reason for hiding this comment

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

I think you could make this more general by treating two sets of path conditions equivalent if set a implies all of the conditions in set b and vice versa. I.e. a <=> b is as good as a = b.

Copy link
Contributor

@NTillmann NTillmann left a comment

Choose a reason for hiding this comment

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

Very nice!

+1 to what Herman said, but I'd be fine if that's done in a separate PR.

Copy link

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@NTillmann is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants