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 unordered transduce for channels #112

Merged
merged 8 commits into from
Jan 5, 2020
Merged

Add unordered transduce for channels #112

merged 8 commits into from
Jan 5, 2020

Conversation

tkf
Copy link
Member

@tkf tkf commented Dec 26, 2019

@codecov-io
Copy link

codecov-io commented Dec 26, 2019

Codecov Report

Merging #112 into master will decrease coverage by 0.1%.
The diff coverage is 85.41%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #112      +/-   ##
==========================================
- Coverage   88.68%   88.57%   -0.11%     
==========================================
  Files          18       19       +1     
  Lines        1131     1173      +42     
==========================================
+ Hits         1003     1039      +36     
- Misses        128      134       +6
Impacted Files Coverage Δ
src/lister.jl 80.48% <ø> (ø) ⬆️
src/Transducers.jl 100% <ø> (ø) ⬆️
src/processes.jl 89.33% <0%> (-2.45%) ⬇️
src/basics.jl 43.75% <100%> (+8.03%) ⬆️
src/reduce.jl 100% <100%> (+3.17%) ⬆️
src/unordered.jl 92.3% <92.3%> (ø)
src/core.jl 74.67% <0%> (-0.65%) ⬇️
src/library.jl 93.28% <0%> (+0.01%) ⬆️

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 a5a1879...e4e73b5. Read the comment docs.

@spawn begin
acc = acc′′
for _ in 1:basesize
x = maybe_popfirst!(input)
Copy link
Member Author

Choose a reason for hiding this comment

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

Maybe interleaving I/O (popfirst!(::Channel)) and computation (next(xf, ...)) is bad for performance (e.g., SIMD cannot be used this way)? This should probably be done outside the reduction loop?

Copy link
Member Author

Choose a reason for hiding this comment

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

Implemented in #123

@tkf tkf merged commit b74c36f into master Jan 5, 2020
@tkf tkf deleted the unordered branch January 5, 2020 04:50
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