[ 
https://issues.apache.org/jira/browse/ARROW-13147?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Liya Fan resolved ARROW-13147.
------------------------------
    Fix Version/s: 5.0.0
       Resolution: Fixed

Issue resolved by pull request 10576
[https://github.com/apache/arrow/pull/10576]

> [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
>             Fix For: 5.0.0
>
>          Time Spent: 40m
>  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)

Reply via email to