Skip to content

Reduce allocations in jac_gbmm #196

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

Merged
merged 2 commits into from
Feb 21, 2023
Merged

Conversation

jishnub
Copy link
Member

@jishnub jishnub commented Feb 21, 2023

Use loops instead of broadcasting over views, as the views of views often allocate vectors of indices.

Also, call the GC after each testset to avoid excessive memory usage during tests.

@codecov
Copy link

codecov bot commented Feb 21, 2023

Codecov Report

Base: 61.78% // Head: 68.14% // Increases project coverage by +6.35% 🎉

Coverage data is based on head (aa63426) compared to base (591136c).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #196      +/-   ##
==========================================
+ Coverage   61.78%   68.14%   +6.35%     
==========================================
  Files          28       28              
  Lines        2546     2574      +28     
==========================================
+ Hits         1573     1754     +181     
+ Misses        973      820     -153     
Impacted Files Coverage Δ
src/Spaces/PolynomialSpace.jl 90.97% <100.00%> (+1.31%) ⬆️
src/Spaces/Laguerre/Laguerre.jl 60.13% <0.00%> (+1.35%) ⬆️
src/Spaces/Chebyshev/Chebyshev.jl 59.85% <0.00%> (+1.40%) ⬆️
src/Spaces/Ultraspherical/Ultraspherical.jl 78.57% <0.00%> (+1.78%) ⬆️
src/Spaces/Jacobi/Jacobi.jl 65.04% <0.00%> (+1.94%) ⬆️
src/Spaces/Ultraspherical/ContinuousSpace.jl 54.28% <0.00%> (+3.03%) ⬆️
src/show.jl 55.88% <0.00%> (+8.82%) ⬆️
src/Spaces/Ultraspherical/DirichletSpace.jl 50.00% <0.00%> (+9.80%) ⬆️
src/Spaces/Jacobi/JacobiOperators.jl 82.98% <0.00%> (+11.45%) ⬆️
... and 8 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@jishnub jishnub merged commit 2de9a10 into JuliaApproximation:master Feb 21, 2023
@jishnub jishnub deleted the jac_gbmm branch February 21, 2023 11: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.

1 participant