[
https://jira.jboss.org/jira/browse/JGRP-806?page=com.atlassian.jira.plugi...
]
Bela Ban commented on JGRP-806:
-------------------------------
#1 Okay, I changed resize() to be unsynchronized.
#2 I have resize() double its capacity, but then changed it to linear growth. This is
optimized for an average number of 3 headers. I certainly never have more than 10 headers,
so I didn't want to double the size
#3 The Message.getHeaders() method is not called by any important method other than
Event.toString(), which I changed to call Message.printHeaders()
Note that you *can* iterate over the array without producing garbage: the getRawData()
method of Headers allows you to do this
Message: investigate making the overhead for headers smaller
------------------------------------------------------------
Key: JGRP-806
URL:
https://jira.jboss.org/jira/browse/JGRP-806
Project: JGroups
Issue Type: Task
Reporter: Bela Ban
Assignee: Bela Ban
Fix For: 2.6.4, 2.7
Related to
https://jira.jboss.org/jira/browse/JGRP-805.
See whether we can make the overhead for ConcurrentHashmap in Message smaller.
Potentially reduce the number of buckets for each CCHM (default: 16, IIRC). Or replace
CCHMs altogether ?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira