Skip to content

resume: dispatch iterators via Either#13

Open
vilgotf wants to merge 1 commit into
mainfrom
vilgotf/either
Open

resume: dispatch iterators via Either#13
vilgotf wants to merge 1 commit into
mainfrom
vilgotf/either

Conversation

@vilgotf

@vilgotf vilgotf commented Jun 13, 2026

Copy link
Copy Markdown
Member

Restore awkwardly worked around its different iterator types through generics (internally) and consuming the iterator (return value). Dispatching on a concrete type saves us from needlessly consuming the iterator and having to use generics.

This PR adds a dependency to the either crate and dispatches on it for restore's iterators. It also prefers Box<[T]> to Vec<T> where applicable and moves DashMap to an internal context module type.

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.

1 participant