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

[Java] Implement "ArrowBufReadChannel" abstraction and alternate MessageSerializer that uses this

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 0.14.0
    • Component/s: Java
    • Labels:
      None

      Description

      The current MessageSerializer implementation is wasteful when used to read an IPC payload that is already in-memory in an ArrowBuf. In particular, reads out of a ReadChannel require memory allocation

      In C++, we have abstracted memory allocation out of the IPC read path so that zero-copy is possible. I suggest that a similar mechanism can be developed for Java to improve deserialization performance for in-memory messages. The new interface would return ArrowBuf when performing reads, which could be zero-copy when possible, but when not the current strategy of allocate-copy could be used

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              wesmckinn Wes McKinney
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: