-
Notifications
You must be signed in to change notification settings - Fork 10
Move SparseArrays to an extension #158
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
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #158 +/- ##
==========================================
+ Coverage 87.08% 87.27% +0.19%
==========================================
Files 10 11 +1
Lines 1773 1784 +11
==========================================
+ Hits 1544 1557 +13
+ Misses 229 227 -2
☔ View full report in Codecov by Sentry. |
|
Could you add tests for those two lines? (I realise they weren't covered before but just to make sure it isn't breaking something that was working) |
|
Could it be that the dependency on |
|
I think it's almost a weak dep, but I found that |
|
How many |
|
Actually, this seems to be an easy case. if VERSION < v"1.8-"
axes_print_matrix_row(lay, io, X, A, i, cols, sep) =
Base.invoke(Base.print_matrix_row, Tuple{IO,AbstractVecOrMat,Vector,Integer,AbstractVector,AbstractString},
io, X, A, i, cols, sep)
else
axes_print_matrix_row(lay, io, X, A, i, cols, sep, idxlast::Integer=last(axes(X, 2))) =
Base.invoke(Base.print_matrix_row, Tuple{IO,AbstractVecOrMat,Vector,Integer,AbstractVector,AbstractString,Integer},
io, X, A, i, cols, sep, idxlast)
endso it is just an indirection, without reference to |
16d654a to
16de1c0
Compare
|
The patch coverage is fixed now |
|
So, shall we also make FillArrays.jl a weak dependency here? Can I help with anything? |
|
|
|
Sure, you just keep things internal, don't import them from each other, and have copies in each of the packages. And, TBH, that's what they are: internal functions. One could in fact get rid of them completely by having version-dependent versions of the print functions, which call the Base functions directly. |
|
You are welcome to submit a PR with the changes |
|
@dlfivefifty should be good to merge? Coverage is fixed now |
No description provided.