Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error instead of widening index types in sparse #33083

Merged
merged 1 commit into from
Aug 27, 2019
Merged

Conversation

mbauman
Copy link
Member

@mbauman mbauman commented Aug 26, 2019

Followup to https://github.com/JuliaLang/julia/pull/31724/files#r317686891; instead of widening the index type dynamically based upon the index vector length, just throw an error in the case where the index type cannot hold all the indices in a CSC format. This previously was an OOB access (and likely segfault) in 1.2, so throwing an error here is not a breaking change -- and throwing an error restores type stability, addressing the performance regression flagged in #32985.

CC @KlausC

Followup to https://github.com/JuliaLang/julia/pull/31724/files#r317686891; instead of widening the index type dynamically based upon the index vector length, just throw an error in the case where the index type cannot hold all the indices in a CSC format. This previously was an OOB access (and likely segfault) in 1.2, so throwing an error here is not a breaking change -- and throwing an error restores type stability, addressing the performance regression flagged in #32985.
@mbauman mbauman added the sparse Sparse arrays label Aug 26, 2019
@KristofferC KristofferC mentioned this pull request Aug 26, 2019
36 tasks
@KristofferC KristofferC added this to the 1.3 milestone Aug 27, 2019
@KristofferC KristofferC merged commit 9725fb4 into master Aug 27, 2019
@delete-merged-branch delete-merged-branch bot deleted the mb/sparsenowiden branch August 27, 2019 07:32
KristofferC pushed a commit that referenced this pull request Aug 27, 2019
Followup to https://github.com/JuliaLang/julia/pull/31724/files#r317686891; instead of widening the index type dynamically based upon the index vector length, just throw an error in the case where the index type cannot hold all the indices in a CSC format. This previously was an OOB access (and likely segfault) in 1.2, so throwing an error here is not a breaking change -- and throwing an error restores type stability, addressing the performance regression flagged in #32985.

(cherry picked from commit 9725fb4)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sparse Sparse arrays
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants