Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-2189

Compact buffers of ExpandableMarshalledValueByteStream to save memory on long term storage

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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Obsolete
    • Icon: Major Major
    • None
    • 5.1.5.FINAL
    • None
    • None

      Buffers allocated by org.infinispan.io.ExpandableMarshalledValueByteStream grow by approximation, but in

      org.infinispan.marshall.MarshalledValue.serialize0()

      we know when the buffer won't grow any longer as it's going to be treated as effectively immutable. At this point we should shrink the buffer to potentially save memory on each entry in the datagrid.

      This likely needs to be optional as depending on configuration the buffer might be used for a temporary operation, in which case the effort of resizing should be avoided.

              Unassigned Unassigned
              sgrinove Sanne Grinovero (Inactive)
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: