[jboss-jira] [JBoss JIRA] (JGRP-1769) Table.add() with message list can lead to many resizings

Bela Ban (JIRA) issues at jboss.org
Fri Jan 10 11:51:33 EST 2014


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

Bela Ban resolved JGRP-1769.
----------------------------

    Resolution: Done

    
> Table.add() with message list can lead to many resizings
> --------------------------------------------------------
>
>                 Key: JGRP-1769
>                 URL: https://issues.jboss.org/browse/JGRP-1769
>             Project: JGroups
>          Issue Type: Enhancement
>            Reporter: Bela Ban
>            Assignee: Bela Ban
>            Priority: Minor
>             Fix For: 3.5
>
>
> Table maintains an array of arrays (a matrix) and needs to resize it when adding messages that would go beyond the capacity of the array.
> This is done when adding a message.
> However, when adding a *list of messages*, as we're adding messages individually, we compute the needed capacity and perform a resize if needed.
> This leads to possibly too much copying.
> SOLUTION:
> * When adding a list of messages, do the resizing (if needed) *before* adding messages individually

--
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