-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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 slow when Range inputs are used as opposed to vectors #938
Comments
I am guessing this is because the codegen is optimizing A[i] for vectors, but there is no similar rule for Range. |
This is even more surprising, since range inputs are expanded anyways in |
This is still the case even with the new implementation of sparse().
|
Yes, |
It is a performance pothole, as people will routinely pass stuff like 1:n around. Can we improve the performance of -viral On 19-Jun-2012, at 10:15 AM, Jeff Bezanson wrote:
|
When ranges are passed to sparse(), the code runs 10 times slower.
The text was updated successfully, but these errors were encountered: