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

Avoid unnecessary boxing/unboxing when creating new arrays #15817

Merged
merged 1 commit into from
Apr 10, 2016
Merged

Conversation

yuyichao
Copy link
Contributor

@yuyichao yuyichao commented Apr 9, 2016

And restrict the dimensions argument to a tuple of Int.

if (!jl_is_tuple(v))
return 0;
size_t nfields = jl_nfields(v);
for (size_t i = 0;i < nfields;i++) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

space after semicolons?

@yuyichao
Copy link
Contributor Author

yuyichao commented Apr 9, 2016

Travis OSX hits #15808 (log) Restarted...

@yuyichao yuyichao merged commit b6cb2d6 into master Apr 10, 2016
@yuyichao yuyichao deleted the yyc/array branch April 10, 2016 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants