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

Faster conflict cache #14922

Closed
wants to merge 4 commits into from
Closed

Conversation

Eh2406
Copy link
Contributor

@Eh2406 Eh2406 commented Dec 11, 2024

Builds on #14915

The current code loops over all package versions we have had past problems with to see which ones are currently active. This branch checks which version of the package is active to see if we have a conflict for it. If resolution is dominated by a package with many versions, then this find operation should go from O(n) to O(1).

@rustbot
Copy link
Collaborator

rustbot commented Dec 11, 2024

r? @weihanglo

rustbot has assigned @weihanglo.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added A-dependency-resolution Area: dependency resolution and the resolver S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Dec 11, 2024
@epage epage changed the title Faster conflict cash Faster conflict cache Dec 11, 2024
@Eh2406
Copy link
Contributor Author

Eh2406 commented Dec 11, 2024

After fixing the bug, the performance numbers seem worse than master. The added layer of indirection may be too expensive. One more thing to try before I close.

@Eh2406
Copy link
Contributor Author

Eh2406 commented Dec 11, 2024

No it is not faster. Sorry.

@Eh2406 Eh2406 closed this Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-dependency-resolution Area: dependency resolution and the resolver S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants