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

Sanne Grinovero (JIRA) issues at jboss.org
Fri Jan 24 13:14:29 EST 2014


     [ https://issues.jboss.org/browse/ISPN-2189?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sanne Grinovero resolved ISPN-2189.
-----------------------------------

      Assignee:     (was: Manik Surtani)
    Resolution: Out of Date

    
> 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
>
> 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
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the infinispan-issues mailing list