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

Bela Ban (JIRA) issues at jboss.org
Mon Jan 20 08:06:28 EST 2014


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

Bela Ban updated JGRP-1774:
---------------------------

    Description: 
When a long gets encoded, a function is used which returns a {{byte[]}}.
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_.

  was:
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_.


    
> 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 {{byte[]}}.
> 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