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

Optimize identity and neighbor selectors #1691

Merged
merged 1 commit into from
Mar 25, 2023

Conversation

mtdowling
Copy link
Member

When an identity selector is encountered, it is now ignored in the parsed result because it has no effect on the created AST.

Neighbor selection is now a single class with no subclasses. Undirected neighbor selection now uses a shared static instance rather than creating them each time ">" or "<" are parsed.

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

When an identity selector is encountered, it is now
ignored in the parsed result because it has no effect
on the created AST.

Neighbor selection is now a single class with no subclasses.
Undirected neighbor selection now uses a shared static instance
rather than creating them each time ">" or "<" are parsed.
@mtdowling mtdowling requested a review from a team as a code owner March 23, 2023 23:45
@mtdowling mtdowling merged commit 22545c6 into main Mar 25, 2023
@mtdowling mtdowling deleted the optimize-identity-and-neighbor-selectors branch March 30, 2023 17:36
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.

2 participants