Deltares / Ribasim

Water resources modeling
https://ribasim.org/
MIT License
39 stars 5 forks source link

Refactor all the things #1559

Closed SouthEndMusic closed 3 months ago

SouthEndMusic commented 3 months ago

I plowed trough some refactoring ideas:

evetion commented 3 months ago

Was your secondary goal to touch all Julia core files? 😅

evetion commented 3 months ago

AGV model went from:

2.030423 seconds (3.86 M allocations: 1006.978 MiB, 1.50% gc time) to 1.934420 seconds (3.02 M allocations: 966.206 MiB, 1.83% gc time)

Given the reduction in allocations, this might be even faster on non-control heavy models.