[jboss-jira] [JBoss JIRA] Commented: (JGRP-1158) TP.Bundler: don't send dest and src addresses for individual messages
Bela Ban (JIRA)
jira-events at lists.jboss.org
Tue Feb 23 09:11:10 EST 2010
[ https://jira.jboss.org/jira/browse/JGRP-1158?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12516010#action_12516010 ]
Bela Ban commented on JGRP-1158:
--------------------------------
The dest and src fields for individual messages of a bundle are only sent *once*. If the src_addr of a given message differs from the src sent first, we do send it, e.g. in the case of a shared transport.
This change reduced the number of bytes of a marshalled message
> TP.Bundler: don't send dest and src addresses for individual messages
> ---------------------------------------------------------------------
>
> Key: JGRP-1158
> URL: https://jira.jboss.org/jira/browse/JGRP-1158
> Project: JGroups
> Issue Type: Feature Request
> Reporter: Bela Ban
> Assignee: Bela Ban
> Fix For: 2.10
>
>
> When sending bundled messages to a given destination, e.g. P, if we have 10 messages with dest=P and src=S, then we marshall the message list as follows:
> length=10
> M1
> M2
> ...
> M10
> The dest and src fields for each message is marshalled as well, and since an Address (UUID) has ca 20 bytes, the cost for dest and src address is ca 40 bytes per message. If we change the marshalling to this scheme:
> length=10
> dest=P
> src=S
> M1 (dest=null, src=null)
> M2 (dest=null, src=null)
> ...
> M10 (dest=null, src=null)
> , we save (N-1) * 40 bytes == 360 bytes for the 10 messages !
--
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
More information about the jboss-jira
mailing list