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

Remove unused type arguments that cause allocations in Ferrite.cellnodes!() #366

Merged
merged 1 commit into from
Aug 19, 2021

Conversation

lijas
Copy link
Collaborator

@lijas lijas commented Aug 19, 2021

This seems like a bug in julia? Feels weird, hopefully i am not benchmarking it wrong in some way 😅

@btime Ferrite.cellnodes!($nodes, $dh, $1)

Before:
25.734 ns (1 allocation: 112 bytes)

Now:
5.311 ns (0 allocations: 0 bytes)

@KristofferC
Copy link
Collaborator

JuliaLang/julia#29393

@codecov-commenter
Copy link

Codecov Report

Merging #366 (f9162cb) into master (de7567a) will increase coverage by 0.33%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #366      +/-   ##
==========================================
+ Coverage   88.37%   88.70%   +0.33%     
==========================================
  Files          20       20              
  Lines        2219     2285      +66     
==========================================
+ Hits         1961     2027      +66     
  Misses        258      258              
Impacted Files Coverage Δ
src/Dofs/MixedDofHandler.jl 84.71% <100.00%> (+0.06%) ⬆️
src/Grid/grid_generators.jl 100.00% <0.00%> (ø)
src/Export/VTK.jl 75.71% <0.00%> (+0.35%) ⬆️
src/Grid/grid.jl 86.50% <0.00%> (+0.61%) ⬆️
src/interpolations.jl 90.69% <0.00%> (+1.13%) ⬆️

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 de7567a...f9162cb. Read the comment docs.

@fredrikekre fredrikekre merged commit 75a4dab into Ferrite-FEM:master Aug 19, 2021
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.

4 participants