Re: C++ Determine Size of RecordBatch

2021-09-01 Thread Jorge Cardoso Leitão
note that that would be an upper bound because buffers can be shared between arrays. On Wed, Sep 1, 2021 at 2:15 PM Antoine Pitrou wrote: > On Tue, 31 Aug 2021 21:46:23 -0700 > Rares Vernica wrote: > > > > I'm storing RecordBatch objects in a local cache to improve performance. > I > > want to

Re: C++ Determine Size of RecordBatch

2021-09-01 Thread Antoine Pitrou
On Tue, 31 Aug 2021 21:46:23 -0700 Rares Vernica wrote: > > I'm storing RecordBatch objects in a local cache to improve performance. I > want to keep track of the memory usage to stay within bounds. The arrays > stored in the batch are not nested. > > The best way I came up to compute the size o

C++ Determine Size of RecordBatch

2021-08-31 Thread Rares Vernica
Hello, I'm storing RecordBatch objects in a local cache to improve performance. I want to keep track of the memory usage to stay within bounds. The arrays stored in the batch are not nested. The best way I came up to compute the size of a RecordBatch is: size_t arrowSize = 0;