>np.append() copy all the data in the array every time, but list grow the capacity by a factor (1.125). list is fast, but memory usage is larger than array. You can use array module of the python standard library if you care about the memory. https://stackoverflow.com/questions/7133885/fastest-way-to-grow-a-numpy-numeric-array Видимо такой же, как у обычного листа
Обсуждают сегодня