[
https://jira.jboss.org/jira/browse/JGRP-806?page=com.atlassian.jira.plugi...
]
Bela Ban commented on JGRP-806:
-------------------------------
OK, I've created a new class Headers which uses an array. Message uses Headers.
I know that we could have used an array directly in Message, saving the 4 bytes for the
ref to Headers, but this way we can unit test and change Headers independently
(HeadersTest).
The code is in CVS head, take a look and comment. I'll back port this to 2.6.
Performance is not worse, actually slightly better, so the linear iteration doesn't
cost us much, compared to the gains from not generating that much garbage.
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