[jboss-jira] [JBoss JIRA] (JGRP-1769) Table.add() with message list can lead to many resizings
Bela Ban (JIRA)
issues at jboss.org
Thu Jan 9 06:45:33 EST 2014
Bela Ban created JGRP-1769:
------------------------------
Summary: 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