Skip to content

uv-resolver: push resolver state to its own type#3492

Merged
BurntSushi merged 1 commit intomainfrom
ag/resolver-state
May 9, 2024
Merged

uv-resolver: push resolver state to its own type#3492
BurntSushi merged 1 commit intomainfrom
ag/resolver-state

Conversation

@BurntSushi
Copy link
Copy Markdown
Member

This still keeps the resolver state on the stack, but it organizes it
into a more structured representation. This is a precursor to
implementing resolver forking, where we will ultimately put this state
on the heap. The idea is that this will let us maintain multiple
independent resolver states that will all produce their own resolution
(and potentially other forked states).

Closes #3354

This still keeps the resolver state on the stack, but it organizes it
into a more structured representation. This is a precursor to
implementing resolver forking, where we will ultimately put this state
on the heap. The idea is that this will let us maintain multiple
independent resolver states that will all produce their own resolution
(and potentially other forked states).

Closes #3354
priorities: PubGrubPriorities,
/// This keeps track of the set of versions for each package that we've
/// already visited during resolution. This avoids doing redundant work.
added_dependencies: FxHashMap<PubGrubPackage, FxHashSet<Version>>,
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@charliermarsh What do you think about the comments here? Did I get things right? It would be useful to know if my understanding is correct. (Or even incomplete.)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Yeah these look good.

@BurntSushi BurntSushi merged commit ad01a76 into main May 9, 2024
@BurntSushi BurntSushi deleted the ag/resolver-state branch May 9, 2024 18:16
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.

universal-lock: refactor resolver state into explicit type

2 participants