Re: [Numpy-discussion] Array concatenation performance

2010-07-15 Thread John Porter
2010 at 4:15 PM, Skipper Seabold wrote: > On Thu, Jul 15, 2010 at 11:05 AM, John Porter > wrote: >> You're right - I screwed up the timing for the one that works... >> It does seem to be faster. >> >> I've always just built arrays using nx.array([]) in the

Re: [Numpy-discussion] Array concatenation performance

2010-07-15 Thread John Porter
10 at 5:54 AM, John Porter wrote: >> Has anyone got any advice about array creation. I've been using numpy >> for a long time and have just noticed something unexpected about array >> concatenation. >> >> It seems that using numpy.array([a,b,c]) is around 20

[Numpy-discussion] Array concatenation performance

2010-07-15 Thread John Porter
Has anyone got any advice about array creation. I've been using numpy for a long time and have just noticed something unexpected about array concatenation. It seems that using numpy.array([a,b,c]) is around 20 times slower than creating an empty array and adding the individual elements. Other thi