[Numpy-discussion] vstack and hstack performance penalty

Sebastian Berg sebastian at sipsolutions.net
Fri Jan 24 09:58:26 EST 2014

On Fri, 2014-01-24 at 06:13 -0800, Dinesh Vadhia wrote:
> When using vstack or hstack for large arrays, are there any
> performance penalties eg. takes longer time-wise or makes a copy of an
> array during operation ?

No, they all use concatenate. There are only constant overheads on top
of the necessary data copying. Though performance may vary because of
memory order, etc.

- Sebastian

> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion at scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion

More information about the NumPy-Discussion mailing list