[
https://issues.apache.org/jira/browse/ARROW-7831?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Francois Saint-Jacques updated ARROW-7831:
------------------------------------------
Summary: [Java] unnecessary buffer allocation when calling
splitAndTransferTo on variable width vectors (was: unnecessary buffer
allocation when calling splitAndTransferTo on variable width vectors)
> [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
> Priority: Minor
> Labels: pull-request-available
> Time Spent: 20m
> 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)