idailylife commented on issue #42037: URL: https://github.com/apache/arrow/issues/42037#issuecomment-2566027336
And can take surprisingly long... ```python import itertools import numpy as np import pyarrow as pa data = [pa.array(np.random.random(10000)) for _ in range(1000)] data_2d = [pa.chunked_array(batch) for batch in batched(data, 50)] # Below takes 11.49s on my laptop slow = pa.chunked_array(data_2d) # Below takes 28ms + 17ms data_2d_precombined = [pa.chunked_array(batch).combine_chunks() for batch in batched(data, 50)] faster = pa.chunked_array(data_2d_precombined) ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
