JuliaFolds / Transducers.jl

Efficient transducers for Julia
https://juliafolds.github.io/Transducers.jl/dev/
MIT License
432 stars 24 forks source link

Promotion mechanism for executors #441

Closed tkf closed 3 years ago

tkf commented 3 years ago

Commit Message

Promotion mechanism for executors (#441)

This patch defines a low-level entry point transduce(xf, step, init, collection, ::PreferParallel) where the default executor is decided in terms of collection. It defines a promotion mechanism so that multiple containers in zip, product, etc. can "talk" to each other to obtain a reasonable default.

codecov[bot] commented 3 years ago

Codecov Report

Merging #441 (596e3e9) into master (6cb1fd2) will decrease coverage by 0.21%. The diff coverage is 75.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #441      +/-   ##
==========================================
- Coverage   92.01%   91.80%   -0.22%     
==========================================
  Files          28       28              
  Lines        1904     1928      +24     
==========================================
+ Hits         1752     1770      +18     
- Misses        152      158       +6     
Flag Coverage Δ
unittests 91.80% <75.00%> (-0.22%) :arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/Transducers.jl 91.66% <ø> (ø)
src/basics.jl 95.31% <ø> (ø)
src/executors.jl 86.00% <74.07%> (-14.00%) :arrow_down:
src/core.jl 88.20% <100.00%> (+0.57%) :arrow_up:

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 6cb1fd2...596e3e9. Read the comment docs.