You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Another method addition in this package that causes invalidation is ifelse. Basically the same case as the other issues. Except, I suppose, you can't get rid of that method without breaking changes.
Regarding testing the invalidation count, I vehemently support adding such tests to upstream (issue JuliaLang/julia#47022, PR JuliaLang/julia#57884), however it's tricky to test invalidations for a package. The issue is that invalidation depends on both:
What is loaded before starting to measure, which is the sysimage at the very least, perhaps also other packages.
The dependencies of your package, as they need to be loaded before your package can be loaded.
So I suppose you would need to pin both the version of Julia, and of all your deps for the test that counts invalidations, which limits the usefulness of the test somewhat.
Activity
adrhill commentedon Sep 10, 2025
This action might be helpful: https://github.com/julia-actions/julia-invalidations
nsajko commentedon Sep 10, 2025
Another method addition in this package that causes invalidation is
ifelse. Basically the same case as the other issues. Except, I suppose, you can't get rid of that method without breaking changes.Regarding testing the invalidation count, I vehemently support adding such tests to upstream (issue JuliaLang/julia#47022, PR JuliaLang/julia#57884), however it's tricky to test invalidations for a package. The issue is that invalidation depends on both:
What is loaded before starting to measure, which is the sysimage at the very least, perhaps also other packages.
The dependencies of your package, as they need to be loaded before your package can be loaded.
So I suppose you would need to pin both the version of Julia, and of all your deps for the test that counts invalidations, which limits the usefulness of the test somewhat.