Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-7831

[Java] unnecessary buffer allocation when calling splitAndTransferTo on variable width vectors

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.0.0
    • Java
    • Patch

    Description

      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.

      Attachments

        Activity

          People

            yfful stephane campinas
            yfful stephane campinas
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 6h 20m
                6h 20m