[NumPy-Tickets] [NumPy] #1779: array.tolist() speed enhancement
NumPy Trac
numpy-tickets@scipy....
Wed Mar 23 15:21:16 CDT 2011
#1779: array.tolist() speed enhancement
-------------------------+--------------------------------------------------
Reporter: Han | Owner: somebody
Type: enhancement | Status: needs_review
Priority: normal | Milestone: 1.6.0
Component: Other | Version: devel
Keywords: tolist |
-------------------------+--------------------------------------------------
Comment(by Han):
Whoa, that was quick! :-D
Your patch also gives a large improvement on multidimensional data:
{{{
# Before:
>>> timeit.timeit('a.tolist()', 'from numpy import zeros; a =
zeros((1e4,10,10))', number=50)
20.638730049133301
# After:
>>> timeit.timeit('a.tolist()', 'from numpy import zeros; a =
zeros((1e4,10,10))', number=50)
4.0468051433563232
}}}
Very nice, thanks!
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/1779#comment:6>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list