[infinispan-issues] [JBoss JIRA] (ISPN-2189) Compact buffers of ExpandableMarshalledValueByteStream to save memory on long term storage

Sanne Grinovero (JIRA) jira-events at lists.jboss.org
Thu Aug 9 19:34:06 EDT 2012


Sanne Grinovero created ISPN-2189:
-------------------------------------

             Summary: Compact buffers of ExpandableMarshalledValueByteStream to save memory on long term storage
                 Key: ISPN-2189
                 URL: https://issues.jboss.org/browse/ISPN-2189
             Project: Infinispan
          Issue Type: Enhancement
    Affects Versions: 5.1.5.FINAL
            Reporter: Sanne Grinovero
            Assignee: Manik Surtani
             Fix For: 5.2.0.ALPHA3


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

{code}org.infinispan.marshall.MarshalledValue.serialize0(){code}

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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the infinispan-issues mailing list