Hello, I'm not sure if there are easy ways to avoid calling the destructors. However, I would point out memory space reuse is handled through memory pools; if you have one enabled it shouldn't be handing memory back to the OS between each iteration.
Best, Will Jones On Fri, May 12, 2023 at 9:59 AM SHI BEI <shibei...@foxmail.com> wrote: > Hi community, > > > I'm using the RecordBatchReader::ReadNext interface to read Parquet > data in my project, and I've noticed that there are a lot of temporary > object destructors being generated during usage. Has the community > considered providing an interface to reuse RecordBatch objects > and their memory space for storing data? > > > > > SHI BEI > shibei...@foxmail.com