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

Refactor PathGraph. #19532

Closed
wants to merge 1 commit into from

Conversation

anvilvapre
Copy link
Contributor

Introducing PathQuery to split parameters from actual implementation and to be able to share parameters between PathSearch and PathGraph.

Removed IPathSearch. Removed semi builder pattern from PathSearch. Reduced the spread of state variables across 4 classes.

Future improvements likely possible. Too many Path* types for my taste.

No functional change intended. In rare situation a path search can result in a slightly different path - this is intended. This may break sync on older replays. See original comment.

Originally part of a separate pull request that I will close in future #19245 (comment).

@anvilvapre
Copy link
Contributor Author

Please determine if you'd like to keep this prior to other major upcoming path graph changes.

@anvilvapre
Copy link
Contributor Author

rebased.

@RoosterDragon
Copy link
Member

I ended up with a similar flavour of changes in #19591 although the specifics did come out a bit different. Mentioning just to surface awareness of merge conflicts.

@abcdefg30
Copy link
Member

This needs another rebase now.

@anvilvapre
Copy link
Contributor Author

Please decide if you want some of these changes. I won't feel like rebasing/re-implementing them myself a third time. So I will close this pull request in future.

@abcdefg30
Copy link
Member

Tbh, I don't know. Most changes in this PR seem to be superseded, so it might make sense to just close this and start anew if you feel there can still be optimizations (or just leave it as is).

@anvilvapre anvilvapre closed this Dec 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants