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 experimental support for automatic fork-join parallelism #6

Merged
merged 8 commits into from Jan 12, 2019

Conversation

brunocodutra
Copy link
Owner

@brunocodutra brunocodutra commented Jan 9, 2019

This PR adds a feature flag parallel that takes advantage of the experimental support for specialization available on nightly Rust (rust-lang/rust#31844), to automatically parallelize tuples of Sync / Send Reducers using Rayon.

For now it includes a custom implementation of the join! macro that should be replaced by rayon-rs/rayon/pull/406 once it's merged upstream.

@codecov
Copy link

codecov bot commented Jan 10, 2019

Codecov Report

Merging #6 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master     #6   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files          14     14           
  Lines         148    182   +34     
=====================================
+ Hits          148    182   +34
Impacted Files Coverage Δ
src/reducer/mod.rs 100% <ø> (ø) ⬆️
src/store.rs 100% <100%> (ø) ⬆️
src/reactor/slice.rs 100% <100%> (ø) ⬆️
src/reactor/array.rs 100% <100%> (ø) ⬆️
src/reactor/tuple.rs 100% <100%> (ø) ⬆️
src/reducer/rc.rs 100% <100%> (ø) ⬆️
src/reactor/option.rs 100% <100%> (ø) ⬆️
src/macros.rs 100% <100%> (ø)
src/mock.rs 100% <100%> (ø)
src/reducer/arc.rs 100% <100%> (ø) ⬆️
... and 6 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d89ed4e...afd3293. Read the comment docs.

@brunocodutra brunocodutra force-pushed the parallel branch 2 times, most recently from e659f43 to 02e40e6 Compare January 12, 2019 16:10
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.

None yet

1 participant