[jboss-jira] [JBoss JIRA] Commented: (JGRP-931) Logical addresses: canonicalize UUIDs with IDs (shorts)
Bela Ban (JIRA)
jira-events at lists.jboss.org
Tue Jan 4 10:38:19 EST 2011
[ https://issues.jboss.org/browse/JGRP-931?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12573225#comment-12573225 ]
Bela Ban commented on JGRP-931:
-------------------------------
I changed code (branch: 'ids') to run a quick test. While IdAddress (generated with a random short) uses 3 rather than 18 bytes in serialized form, performance did not noticeably change !
I guess this would have an impact though on larger clusters...
> Logical addresses: canonicalize UUIDs with IDs (shorts)
> -------------------------------------------------------
>
> Key: JGRP-931
> URL: https://issues.jboss.org/browse/JGRP-931
> Project: JGroups
> Issue Type: Feature Request
> Reporter: Bela Ban
> Assignee: Bela Ban
> Fix For: 2.12
>
>
> Instead of using UUIDs as addresses, the cluster members should agree on shorts, e.g. 1 for A, 2 for B and so on, and use these instead of UUIDs.
> This happens after a certain warmup time. E.g. the coord could assign these IDs, so they're unique.
> IdAddress and UUID have to be able to do equals() or compareTo() with each other !
> Advantage:
> - we send a short (2 bytes) instead of a UUID (16 bytes)
> - we use an IdAddress (class with a short) instead of a UUID. This is 6 bytes less per instance
> - IdAddress might be faster with equals() and hashCode() than UUID
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list