Closed efaulhaber closed 5 months ago
Note that I didn't make this a const git_hash = compute_git_hash()
like the timer()
, so that it also works correctly when you switch branches in between simulations without restarting the REPL.
Attention: Patch coverage is 0%
with 17 lines
in your changes missing coverage. Please review.
Project coverage is 68.73%. Comparing base (
ad90288
) to head (6bf74c6
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
For simulations with few particles and frequent saving,
get_git_hash
had a significant overhead.Say we want a 10-second video with 60 frames per second. That's 5 seconds only due to
get_git_hash
, which always returns the same thing. For small simulations, this is a big overhead.I now precompute the hash at the beginning of the simulation and store it in the callbacks.
Here is the timer output of the default
hydrostatic_water_column_2d.jl
example.main
:This PR: