Skip to content

Conversation

@orso82
Copy link
Contributor

@orso82 orso82 commented Aug 25, 2025

No description provided.

@codecov
Copy link

codecov bot commented Aug 25, 2025

Codecov Report

❌ Patch coverage is 77.14286% with 8 lines in your changes missing coverage. Please review.
✅ Project coverage is 43.76%. Comparing base (277f490) to head (5ee1920).
⚠️ Report is 5 commits behind head on master.

Files with missing lines Patch % Lines
src/expressions.jl 75.00% 8 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master      #76   +/-   ##
=======================================
  Coverage   43.76%   43.76%           
=======================================
  Files          14       14           
  Lines       31243    31252    +9     
=======================================
+ Hits        13674    13678    +4     
- Misses      17569    17574    +5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

fredrikekre and others added 3 commits August 26, 2025 17:55
This patch replaces the `Val{:symbol}` dispatch in
`IMASdd.get_expressions` with `get_(dynamic|onetime)_expressions`.
Instead of defining new methods for `get_expressions` IMAS.jl will
explicitly register its global data structure using
`IMASdd.set_(dynamic|onetime)_expressions`.

The benefit of this restructure is that compilation of IMASdd becomes
independent of methods defined in IMAS. Before, after loading IMAS, a
lot of code in IMASdd had to be recompiled to take the new methods into
account.

Before:
```
julia> using IMASdd

julia> @time @eval IMASdd.dd();
  0.004902 seconds (20.73 k allocations: 864.656 KiB, 34.05% compilation time)

julia> using IMAS

julia> @time @eval IMAS.dd();
  7.673864 seconds (25.65 M allocations: 1.304 GiB, 3.21% gc time, 99.97% compilation time: 100% of which was recompilation)
```

After:
```
julia> using IMASdd

julia> @time @eval IMASdd.dd();
  0.002903 seconds (20.73 k allocations: 864.656 KiB, 55.30% compilation time)

julia> using IMAS

julia> @time @eval IMAS.dd();
  0.001035 seconds (20.69 k allocations: 863.375 KiB)
```
@orso82 orso82 merged commit 5ee1920 into master Aug 27, 2025
5 checks passed
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.

3 participants