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

fix dispatch loop introduced by #19305 #19357

Merged
merged 1 commit into from
Nov 21, 2016
Merged

Conversation

stevengj
Copy link
Member

This fixes a dispatch loop in hvcat introduced by #19305, pointed out by @tkelman, which broke the tests in ImageFiltering.jl (cc @timholy).

It also makes hvcat significantly faster for concatenating 1d arrays or combinations of 1d and 2d arrays. e.g. @benchmark [(1:10^4) (1:10^4) (1:10^4) (1:10^4); (1:10^4) (1:10^4) (1:10^4) (1:10^4); (1:10^4) (1:10^4) (1:10^4) (1:10^4); (1:10^4) (1:10^4) (1:10^4) (1:10^4)] is 2-6x faster than in 0.5.

@stevengj stevengj added the bugfix This change fixes an existing bug label Nov 17, 2016
@kshyatt kshyatt added the types and dispatch Types, subtyping and method dispatch label Nov 17, 2016
@stevengj
Copy link
Member Author

Would like to merge in the next day or two if there are no objections.

@stevengj stevengj merged commit 7232a9a into JuliaLang:master Nov 21, 2016
@stevengj stevengj deleted the hvcat_loop branch November 21, 2016 15:01
fcard pushed a commit to fcard/julia that referenced this pull request Feb 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix This change fixes an existing bug types and dispatch Types, subtyping and method dispatch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants