Uploaded image for project: 'ProtoStream'
  1. ProtoStream
  2. IPROTO-265

Remove additional byte[] allocations for nested readers/writers

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 5.0.11.Final
    • None
    • None
    • False
    • False
    • None

      TagWriterImpl creates additional Encoder instances based on a byte array for message types. We should be able to add a new method to the API to allow for reusing the same underlying encoder avoiding additional allocations.

      To do this some implementations may need to encode a varint as a fixed varint of size 5 to allow for write back calls once a size has been computed. The additional bytes per Message may be worthwhile though, will test to ensure.

              wburns@redhat.com Will Burns
              wburns@redhat.com Will Burns
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: