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

Wes McKinney reassigned ARROW-7831:
-----------------------------------

    Assignee: stephane campinas

> [Java] unnecessary buffer allocation when calling splitAndTransferTo on 
> variable width vectors
> ----------------------------------------------------------------------------------------------
>
>                 Key: ARROW-7831
>                 URL: https://issues.apache.org/jira/browse/ARROW-7831
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: Java
>            Reporter: stephane campinas
>            Assignee: stephane campinas
>            Priority: Minor
>              Labels: pull-request-available
>          Time Spent: 5h 10m
>  Remaining Estimate: 0h
>
> In case the start of the slice is zero, a new offset buffer is unnecessarily 
> allocated:
> https://github.com/apache/arrow/blob/master/java/vector/src/main/java/org/apache/arrow/vector/BaseVariableWidthVector.java#L743
> Since the starting offset is zero, the offset pointers don't have to be 
> updated.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to