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

Fix Zip performance penalty #11

Merged
merged 15 commits into from Jan 14, 2019
Merged

Fix Zip performance penalty #11

merged 15 commits into from Jan 14, 2019

Conversation

tkf
Copy link
Member

@tkf tkf commented Jan 13, 2019

This patch moves all output type inference out of foldl. This is done by creating a static Reduction tree that stores input/output type:

https://github.com/tkf/Transducers.jl/blob/6c014f884410a24dc7b139da4050ce9f56157cda/src/library.jl#L1333-L1357
foreach SIMD test with Zip(Count(), xf_double) now works.

Remaining problems (as of 6c014f8):

  • Compile takes much longer?
  • map! IR test does not produce SIMD (and the benchmark is slow)

@codecov-io
Copy link

codecov-io commented Jan 13, 2019

Codecov Report

Merging #11 into master will increase coverage by 1.47%.
The diff coverage is 87.02%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #11      +/-   ##
==========================================
+ Coverage   81.21%   82.69%   +1.47%     
==========================================
  Files           8        8              
  Lines         740      861     +121     
==========================================
+ Hits          601      712     +111     
- Misses        139      149      +10
Impacted Files Coverage Δ
src/Transducers.jl 100% <ø> (ø) ⬆️
src/core.jl 67.39% <100%> (+2.22%) ⬆️
src/library.jl 85.56% <72.54%> (-1.6%) ⬇️
src/processes.jl 81.94% <91.66%> (+2.38%) ⬆️
src/show.jl 94.15% <96.87%> (+3.04%) ⬆️

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 0fdd763...d6e7501. Read the comment docs.

@tkf
Copy link
Member Author

tkf commented Jan 13, 2019

@nospecialize seems to fix the JIT compilation time problem

image

@tkf tkf merged commit d6e7501 into master Jan 14, 2019
@tkf tkf deleted the zip branch January 14, 2019 09:20
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

2 participants