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

Concurrent iterators #77

Draft
wants to merge 63 commits into
base: main
Choose a base branch
from
Draft

Concurrent iterators #77

wants to merge 63 commits into from

Conversation

orxfun
Copy link
Owner

@orxfun orxfun commented Feb 12, 2025

Prerequisites

SplitVec::iter() Revision

Necessary Iterator methods are overwritten in order to improve performance:

  • nth is implemented. This also improves the performance of skip. Fixes split_vec.iter().skip(n) must not call next n times #75
  • last method is implemented to avoid iterating the entire range.
  • max and min are implemented to reduce over the fragments' default reductions.
  • Similarly, reduction methods fold, reduce, all, any, count are implemented.

In addition, Clone is implemented for the split vector iterator.

Finally, ExactSizeIterator is implemented.

@orxfun orxfun marked this pull request as draft February 12, 2025 20:50
Wraps an IterOfSlices and returns the elements rather than slices.
PinnedVec methods iter_over and iter_mut_over are implemented
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.

split_vec.iter().skip(n) must not call next n times
1 participant