[
https://issues.apache.org/jira/browse/ARROW-13147?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated ARROW-13147:
-----------------------------------
Labels: pull-request-available (was: )
> [Java] Respect the rounding policy when allocating vector buffers
> -----------------------------------------------------------------
>
> Key: ARROW-13147
> URL: https://issues.apache.org/jira/browse/ARROW-13147
> Project: Apache Arrow
> Issue Type: Improvement
> Components: Java
> Reporter: Liya Fan
> Assignee: Liya Fan
> Priority: Major
> Labels: pull-request-available
> Time Spent: 10m
> Remaining Estimate: 0h
>
> According to the current implementation, the default "next power of two"
> rounding policy is assumed when allocating buffers for a vector.
> In particular, for fixed width vectors, this policy is applied for the
> validity and data buffers, and for variable width vectors, this policy is
> applied for the validity and offset buffers.
> However, this default policy is not always used for the allocator. When an
> alternative policy is in use, the buffers allocated assuming the default
> policy will have inappropriate capacities, which may lead to waste of memory
> spaces.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)