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

reimplement the pipe end detecvtion algorithm to ask the API directly, and use it to pull out pipe ends in the scanner #267

Merged
merged 3 commits into from
Oct 21, 2024

Conversation

ahicks92
Copy link
Member

Instead of a bunch of surface queries, we can ask about the pipe connections on the entity. These always all come back, but the target is nil on any not actually connected, so we just count the nils. By stopping early once we have found 2, we get a small optimization wrt not checking everything in the case of non-end pipes. Then, we can make a scanner backend for pipes which uses it since it is no longer extremely heavyweight.

@ahicks92 ahicks92 force-pushed the ahicks/faster-pipe-ends branch from ef454d0 to e188ff5 Compare October 21, 2024 07:31
@ahicks92 ahicks92 merged commit 4043623 into main Oct 21, 2024
2 checks passed
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