You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "stephane campinas (Jira)" <ji...@apache.org> on 2020/02/11 09:09:00 UTC
[jira] [Created] (ARROW-7831) unnecessary buffer allocation when
calling splitAndTransferTo on variable width vectors
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)