Re: Reuse Buffer or BufferOutputStream

2017-09-10 Thread Wes McKinney
It depends (I assume this is Python we are talking about). The BufferOutputStream is single use -- you write a stream and then get the result as a Buffer (BufferOutputStream.get_result). Same in C++. In principle we could add a reset method: https://issues.apache.org/jira/browse/ARROW-1521 You ca

Reuse Buffer or BufferOutputStream

2017-09-10 Thread Rares Vernica
Hi, During the life of the program, can/should the Buffer or BufferOutputStream be resused? If the data in them is no longer needed, can they be reset? Or should I not worry about this as they get out of scope and just create new instances? What is the intended pattern? Thanks! Rares