Conversation
Review checklistThis checklist is meant to assist creators of PRs (to let them know what reviewers will typically look for) and reviewers (to guide them in a structured review process). Items do not need to be checked explicitly for a PR to be eligible for merging. Purpose and scope
Code quality
Documentation
Testing
Performance
Verification
Created with ❤️ by the Trixi.jl community. |
It's a bit funny, because we are not calculating anything, but we are now passing a ghost argument (the type) instead of the actual mesh struct |
|
Yes, exactly. This leads to less allocations (at least when using Polyester.jl) since less wrapping is required. Do you approve this PR? |
There was a problem hiding this comment.
Looks good to me, thanks!
ps: I've tested again and we save 5 seconds and 20MiB on the examples/p4est_2d_dgsem/elixir_euler_subsonic_cylinder.jl, with 16 threads vs main (94 seconds vs 98.8 seconds, and 350 MiB vs 370 MiB). The time might be influenced by some noise, but on average is faster.
|
Thanks! |
This loop-invariant code motion performs slightly better and leads to less allocation with multiple threads, see #3017 (comment).