Skip to content

Simplify CapacityByteArrayOutputStream #1712

@asfimport

Description

@asfimport

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.

Reporter: Alex Levenson / @isnotinvain

Related issues:

Note: This issue was originally created as PARQUET-160. Please see the migration documentation for further details.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions