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

Cleanup TopoSort on module data deps #3632

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Cleanup TopoSort on module data deps #3632

wants to merge 2 commits into from

Conversation

emcfarlane
Copy link
Contributor

This is a small optimization to remove uneeded work when sorting module dependencies. No change in behavior.

This is a small optimization to remove uneeded work when sorting module
dependencies. No change in behavior.
Copy link
Contributor

github-actions bot commented Feb 12, 2025

The latest Buf updates on your PR. Results from workflow Buf CI / buf (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed✅ passedFeb 12, 2025, 5:12 PM

Comment on lines -162 to -163
// There is definitely a better way to do this in one pass for all commits with
// memoization - this is algorithmically bad.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This PR avoids TopoSort on each dep. This function is usually called with one indexed module key, but this comment might be referring to an optimization on multiple module keys.

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