[Numpy-discussion] appending extra items to arrays

Adam Mercer ramercer at gmail.com
Thu Oct 11 14:53:31 EDT 2007


On 11/10/2007, Mark Janikas <mjanikas at esri.com> wrote:
> If you do not know the size of your array before you finalize it, then
> you should use lists whenever you can.  I just cooked up a short
> example:

<snip>

> ##### Result #####
> Total Time with array: 2.12951189331
> Total Time with list: 0.0469707035741
> ########################################################################
> ####
>
> Hope this helps,

That is helpful, I thought that using arrays would be much faster but
its clearly not in this case.

Thanks

Adam



More information about the NumPy-Discussion mailing list