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

Replace inefficient broadcast with copyto! #438

Merged
merged 2 commits into from
Jul 29, 2022
Merged

Replace inefficient broadcast with copyto! #438

merged 2 commits into from
Jul 29, 2022

Conversation

dkarrasch
Copy link
Contributor

This came up in a nanosoldier run in JuliaLang/julia#46196. Independently from that PR, the broadcasting used here previously is super slow in any case, because it computes elementwise getindex which needs to be computed and is not readily readable. The proposed change should speed this step up significantly, at least on Julia v1.7+, see JuliaLang/julia#39533.

src/polynomials/ngcd.jl Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Jul 29, 2022

Codecov Report

Merging #438 (edfd237) into master (ad781ef) will increase coverage by 0.01%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #438      +/-   ##
==========================================
+ Coverage   82.79%   82.80%   +0.01%     
==========================================
  Files          23       23              
  Lines        2889     2891       +2     
==========================================
+ Hits         2392     2394       +2     
  Misses        497      497              
Impacted Files Coverage Δ
src/polynomials/ngcd.jl 83.56% <100.00%> (+0.09%) ⬆️

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 ad781ef...edfd237. Read the comment docs.

Co-authored-by: Daniel Karrasch <[email protected]>
@jverzani
Copy link
Member

Thanks!! Will merge in once all the tests run.

@jverzani jverzani merged commit bf295af into JuliaMath:master Jul 29, 2022
@dkarrasch dkarrasch deleted the patch-1 branch July 29, 2022 16:37
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