Skip to content

Conversation

nsajko
Copy link
Contributor

@nsajko nsajko commented Sep 14, 2025

Stricten up Vararg{Any} to Vararg{Integer}.

The stricter dispatch still satisfies the AbstractArray interface, for both cases of IndexStyle.

The benefit is that Integer excludes some common types, such as CartesianIndex. As a result, loading SparseArrays causes only $24$ invalidations in the sysimage after this change, as opposed to $26$ before this change.

Stricten up `Vararg{Any}` to `Vararg{Integer}`.

The stricter dispatch still satisfies the `AbstractArray` interface,
for both cases of `IndexStyle`.

The benefit is that `Integer` excludes some common types, such as
`CartesianIndex`. As a result, loading SparseArrays causes only $24$
invalidations in the sysimage after this change, as opposed to $26$
before this change.
Copy link

codecov bot commented Sep 14, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.02%. Comparing base (306605d) to head (4e40962).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #652   +/-   ##
=======================================
  Coverage   84.02%   84.02%           
=======================================
  Files          12       12           
  Lines        9297     9297           
=======================================
  Hits         7812     7812           
  Misses       1485     1485           

☔ 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.

@nsajko nsajko marked this pull request as ready for review September 14, 2025 22:09
Copy link
Member

@dkarrasch dkarrasch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All other relevant setindex! methods seem to be restricted to Integers anyway.

@nsajko
Copy link
Contributor Author

nsajko commented Sep 20, 2025

merge?

@dkarrasch dkarrasch merged commit 15ec056 into JuliaSparse:main Sep 21, 2025
10 checks passed
@nsajko nsajko deleted the invalidations_fixes_readonly_setindex branch September 21, 2025 10:18
@KristofferC KristofferC added the backport 1.12 Change should be backported to release-1.12 label Sep 22, 2025
KristofferC pushed a commit that referenced this pull request Sep 22, 2025
@KristofferC KristofferC mentioned this pull request Sep 22, 2025
7 tasks
@KristofferC KristofferC removed the backport 1.12 Change should be backported to release-1.12 label Sep 22, 2025
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