[infinispan-issues] [JBoss JIRA] Resolved: (ISPN-513) hotrod client:optimize serialization of key/values
Mircea Markus (JIRA)
jira-events at lists.jboss.org
Tue Jul 6 12:42:46 EDT 2010
[ https://jira.jboss.org/browse/ISPN-513?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mircea Markus resolved ISPN-513.
--------------------------------
Resolution: Done
That couldn't be implemented as one needs to know the size of the value byte array before sending it to the wire: hotrod mandates that.
Following improvements were added:
- the ByteArrayOuputStream was replaced by ExposedByteArray to avoid byte[] duplication
- SerialiaztionMarshaller can be configured with initial size of the ByteArrayOuputStream
- HotRodMarshaller.marshallObject knows now weather a key or a value is serialized, This allows one to allocate different bufer sizes for keys and values.
> hotrod client:optimize serialization of key/values
> --------------------------------------------------
>
> Key: ISPN-513
> URL: https://jira.jboss.org/browse/ISPN-513
> Project: Infinispan
> Issue Type: Feature Request
> Components: Cache Server
> Affects Versions: 4.1.0.BETA2
> Reporter: Mircea Markus
> Assignee: Mircea Markus
> Fix For: 4.1.0.CR2
>
>
> At the moment the keys and values are being serialized into an byte[] before being send over the wire.
> For the values, the serialization is possible when writing data over the wire, in the socket's output stream (instead of doing it before and keeping it in an byte[]).
> This should reduce the noise of creating too many byte[].
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the infinispan-issues
mailing list