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

Expose apis that allow implementing your own solver loop #231

Open
konstin opened this issue Jun 5, 2024 · 0 comments
Open

Expose apis that allow implementing your own solver loop #231

konstin opened this issue Jun 5, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@konstin
Copy link
Member

konstin commented Jun 5, 2024

In uv, we run our own solver loop (https://github.com/astral-sh/uv/blob/8596525d97e3e0d9b6981f7e122334bfc9f712c8/crates/uv-resolver/src/resolver/mod.rs#L317). This gives us async support, allows moving the solver into a thread, do advanced prefetching based on decisions, splitting resolutions on conflicting requirements for disjoint environments, etc.; overall we do it because we need that level of control with the complexity and performance requirements that uv has.

It would be great if uv would expose a dedicated set of types and methods to allow users to implement their own solver loop if they so choose. This interface comes with caveats, most notably that you have to uphold pubgrub's invariants about the order of operations yourself.

@konstin konstin added the enhancement New feature or request label Jun 5, 2024
@konstin konstin changed the title Expose apis that allow Expose apis that allow implementing your own solver loop Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant