stephane campinas created ARROW-7831:
----------------------------------------
Summary: 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
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)