Liya Fan created ARROW-13147:
--------------------------------

             Summary: [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


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