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

Implement ExactSizeIterator for registry keys and values #3249

Closed
wants to merge 1 commit into from

Conversation

kennykerr
Copy link
Collaborator

This allows the caller to query how many keys and values there are without iterating and offers allocator optimization for Iterator::collect().

@kennykerr
Copy link
Collaborator Author

@riverar is considering an alternative where the registry iterators are lazy rather than eager in calculating their exact size. Will hold on this PR until that's been considered.

@kennykerr kennykerr closed this Sep 5, 2024
@kennykerr kennykerr deleted the ExactSizeIterator branch December 9, 2024 14:02
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