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

Rewrite take_evenly view #442

Merged
merged 2 commits into from
Oct 8, 2024
Merged

Rewrite take_evenly view #442

merged 2 commits into from
Oct 8, 2024

Conversation

nahueespinosa
Copy link
Member

Proposed changes

Avoids using a range pipeline to implement the take_evenly view which is not great for compile times.
This implementation also makes it a random access view when the underlying range is random access.

Type of change

  • 🐛 Bugfix (change which fixes an issue)
  • 🚀 Feature (change which adds functionality)
  • 📚 Documentation (change which fixes or extends documentation)

Checklist

  • Lint and unit tests (if any) pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)
  • All commits have been signed for DCO

@nahueespinosa nahueespinosa requested review from hidmic and glpuga October 7, 2024 18:07
@nahueespinosa nahueespinosa assigned nahueespinosa and unassigned hidmic and glpuga Oct 7, 2024
@nahueespinosa nahueespinosa force-pushed the nahuel/rewrite-take-evenly branch 2 times, most recently from 0b9fdf5 to 9ad988f Compare October 7, 2024 18:36
Avoids using a range pipeline to implement the take_evenly view which is
not great for compile times.

This implementation also makes it a random access view when the
underlying range is random access.

Signed-off-by: Nahuel Espinosa <nespinosa@ekumenlabs.com>
@nahueespinosa nahueespinosa force-pushed the nahuel/rewrite-take-evenly branch from 9ad988f to 7f00c10 Compare October 7, 2024 19:49
Signed-off-by: Nahuel Espinosa <nespinosa@ekumenlabs.com>
Copy link
Collaborator

@hidmic hidmic left a comment

Choose a reason for hiding this comment

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

LGTM

@nahueespinosa nahueespinosa merged commit 00de1ab into main Oct 8, 2024
11 checks passed
@nahueespinosa nahueespinosa deleted the nahuel/rewrite-take-evenly branch October 8, 2024 12:14
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.

3 participants