Alex Levenson created PARQUET-160:
-------------------------------------

             Summary: Simplify CapacityByteArrayOutputStream
                 Key: PARQUET-160
                 URL: https://issues.apache.org/jira/browse/PARQUET-160
             Project: Parquet
          Issue Type: Improvement
            Reporter: Alex Levenson
            Priority: Minor


There's a lot of complicated logic around trying to re-use byte buffers as well 
as allocating slabs before they are needed as well as shrinking / 
consolidating. 

After discussing with [~julienledem] we should simplify and not bother reusing 
the byte buffers, and not allocate buffers until they are needed. The hope is 
this will reduce the memory overhead and that the number of byte buffers should 
be small so they should not cause trouble for GC.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to