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

Add "parallel" iter::empty() and iter::once() #464

Merged
merged 2 commits into from Nov 3, 2017

Conversation

Projects
None yet
1 participant
@cuviper
Copy link
Member

cuviper commented Oct 24, 2017

These are simplistic producers, mirroring their std namesakes. They
are essentially just optimized equivalents to iterating None and
Some(x), where empty() is a ZST, once() doesn't need the enum tag
for an Option, and neither have the associated enum branches.

Add "parallel" iter::empty() and iter::once()
These are simplistic producers, mirroring their `std` namesakes.  They
are essentially just optimized equivalents to iterating `None` and
`Some(x)`, where `empty()` is a ZST, `once()` doesn't need the enum tag
for an `Option`, and neither have the associated enum branches.
@cuviper

This comment has been minimized.

Copy link
Member Author

cuviper commented Oct 24, 2017

I need to add docs before we merge this.

@cuviper

This comment has been minimized.

Copy link
Member Author

cuviper commented Nov 2, 2017

bors r+

bors bot added a commit that referenced this pull request Nov 2, 2017

Merge #464
464: Add "parallel" iter::empty() and iter::once() r=cuviper a=cuviper

These are simplistic producers, mirroring their `std` namesakes.  They
are essentially just optimized equivalents to iterating `None` and
`Some(x)`, where `empty()` is a ZST, `once()` doesn't need the enum tag
for an `Option`, and neither have the associated enum branches.
@bors

This comment has been minimized.

Copy link
Contributor

bors bot commented Nov 3, 2017

@bors bors bot merged commit cfcc7bc into rayon-rs:master Nov 3, 2017

2 checks passed

bors Build succeeded
continuous-integration/travis-ci/pr The Travis CI build passed
Details

@cuviper cuviper deleted the cuviper:once-empty branch Oct 18, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.