[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
Tue Jan 21 11:10:28 EST 2014


    [ https://issues.jboss.org/browse/JGRP-1774?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12937601#comment-12937601 ] 

Bela Ban commented on JGRP-1774:
--------------------------------

Moved methods read/writeLong(), read/writeLongSequence() and size() from Util to Bits 
                
> 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