[jboss-jira] [JBoss JIRA] (JGRP-1774) Avoid buffer allocations when encoding a long for appending to another buffer

Sanne Grinovero (JIRA) issues at jboss.org
Fri Jan 17 17:56:32 EST 2014


Sanne Grinovero created JGRP-1774:
-------------------------------------

             Summary: Avoid buffer allocations when encoding a long for appending to another buffer
                 Key: JGRP-1774
                 URL: https://issues.jboss.org/browse/JGRP-1774
             Project: JGroups
          Issue Type: Enhancement
            Reporter: Sanne Grinovero
            Assignee: Sanne Grinovero
             Fix For: 3.5


When a long gets encoded, a function is used which returns a {code}byte[]{code}.
There are some hot methods which invoke this encoding, to then append the buffer's content into a _DataOutput_. Especially for the case of these hot methods we should rather have the function write the encoded form directly into the _DataOutput_.

--
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 jboss-jira mailing list