Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-14576

ProtoStream readers create unnecessary intermediate ByteBuffer/streams when reading nested objects

XMLWordPrintable

      Currently, when reading a nested object, we use CodedInputStream.readByteBuffer() which we wrap with a ByteArrayInputStream for reading, as if it were not nested.

      None of these object allocations (and, potentially, buffer copying) is necessary if we leverage protobuf's push/popLimit() logic.

      This should result in a lower memory footprint during unmarshalling.

              pferraro@redhat.com Paul Ferraro
              pferraro@redhat.com Paul Ferraro
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: