-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
sparse() is really slow #268
Comments
Matlab's sparse takes longer if I and J are random; I wonder if an issorted() check would help. And there are many other operations in there too. This will have to be broken down. |
If I use x = [1:100000], then we are faster than matlab as of commit c9c671b. The ranges have to eventually be expanded for storing in the sparse matrix data structure, and hence the version with ranges will be slower. julia> tic(); s = sparse(x,x,x,100000,100000); toc(); |
I improved integer min and max, and now we don't need the 4th and 5th arguments to sparse to get that performance. |
Add entry for the cholfact(HermOrSym) family
* fix pin on repo added packages * more pin free fixes
Update badges, remove NEWS.md since it's no longer used, and fix a funny typo.
On the most simple case, julia sparse() is 20 times slower than matlab. I think the code can be written in a better way for sure, but I'm not sure if it will give us 20x improvement. This does not even include the cases where the inputs have to be sorted.
Matlab:
Julia:
julia> x = 1:100000;
julia> tic(); sparse(x,x,x); toc();
elapsed time: 0.19214701652526855 seconds
The text was updated successfully, but these errors were encountered: