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 BindingGraph.create() by indexing all binding nodes by their component path instead of traversing the full network for each subcomponent. #2446

Merged
merged 1 commit into from Mar 7, 2021

Conversation

copybara-service[bot]
Copy link

Optimize BindingGraph.create() by indexing all binding nodes by their component path instead of traversing the full network for each subcomponent.

The traversals maintain sets of visited nodes, which aren't great for hashing. Network.successors() is also not well optimized, so repeating that is costly.

RELNOTES=Build performance improvements

@google-cla google-cla bot added the cla: yes label Mar 2, 2021
@copybara-service copybara-service bot force-pushed the test_360362601 branch 2 times, most recently from 5506a64 to 9ea7a9a Compare March 7, 2021 07:32
… component path instead of traversing the full network for each subcomponent.

The traversals maintain sets of visited nodes, which aren't great for hashing. Network.successors() is also not well optimized, so repeating that is costly.

RELNOTES=Build performance improvements
PiperOrigin-RevId: 361390045
@copybara-service copybara-service bot merged commit 47123ec into master Mar 7, 2021
@copybara-service copybara-service bot deleted the test_360362601 branch March 7, 2021 08:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant