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

Stream - Refactor Parjoins #3248

Merged
merged 1 commit into from
Jul 27, 2023
Merged

Conversation

diesalbla
Copy link
Contributor

@diesalbla diesalbla commented Jul 3, 2023

The four parJoin variants, namely bounded/unbounded and ordered/unordered, delegate to parEvalMapActionImpl passing it a initFork function. These initFork action can be reduced to two cases, depending on whether the parJoin has to preserve order or not. Thus, we can replace the function argument with a boolean flag to parEvalMapActionImpl, and write the initFork cases inside the latter.

The `initFork` actions can be reduced to two cases, depending on
whether the parJoin has to preserve order or not. Thus, we can
replace the function argument with a boolean flag to `parEvalMapActionImpl`.
@diesalbla diesalbla requested a review from armanbilge July 3, 2023 12:07
@mpilquist mpilquist merged commit 087fb73 into typelevel:main Jul 27, 2023
14 checks passed
@diesalbla
Copy link
Contributor Author

Thanks @mpilquist

@diesalbla diesalbla deleted the ref_parJoins branch July 27, 2023 21:27
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.

2 participants