8000 ENH: copy ndarrays if they are encountered in setArrayFromSequence by juliantaylor · Pull Request #3696 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

ENH: copy ndarrays if they are encountered in setArrayFromSequence #3696

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

Merged
merged 1 commit into from
Sep 9, 2013

Conversation

juliantaylor
Copy link
Contributor

By avoiding the elementwise copy array([a,b,c]) is now as
fast as vstack([a,b,c])

By avoiding the elementwise copy array([a,b,c]) is now as
fast as vstack([a,b,c])
@juliantaylor
Copy link
Contributor Author

almost solves the performance issue Graeme Belt reported on the list. (3.4s -> 0.55s)
http://mail.scipy.org/pipermail/numpy-discussion/2013-September/067607.html

the rest is inefficient short circuit reduction for multidimensional arrays.

@njsmith
Copy link
Member
njsmith commented Sep 7, 2013

Looks good to me
On 7 Sep 2013 12:24, "Julian Taylor" notifications@github.com wrote:

By avoiding the elementwise copy array([a,b,c]) is now as

fast as vstack([a,b,c])

You can merge this Pull Request by running

git pull https://github.com/juliantaylor/numpy copy-array-create

Or view, comment on, or merge it at:

#3696
Commit Summary

  • ENH: copy ndarrays if they are encountered in setArrayFromSequence

File Changes

Patch Links:

njsmith added a commit that referenced this pull request Sep 9, 2013
ENH: copy ndarrays if they are encountered in setArrayFromSequence
@njsmith njsmith merged commit 72d2382 into numpy:master Sep 9, 2013
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
0