[jboss-jira] [JBoss JIRA] (WFLY-9609) Avoid unnecessary marshalling of AddressableNode wherever possible

Paul Ferraro (JIRA) issues at jboss.org
Mon Dec 11 19:17:00 EST 2017


Paul Ferraro created WFLY-9609:
----------------------------------

             Summary: Avoid unnecessary marshalling of AddressableNode wherever possible
                 Key: WFLY-9609
                 URL: https://issues.jboss.org/browse/WFLY-9609
             Project: WildFly
          Issue Type: Enhancement
          Components: Clustering
    Affects Versions: 11.0.0.Final
            Reporter: Paul Ferraro
            Assignee: Paul Ferraro


Serialization of an AddressableNode requires an additional 7 or 19 bytes (depending on whether the corresponding bind address is IPv4 or IPv6) as well as the logical name as a UTF-8 string; all on top of the 16 bytes required to serialize the JGroups/Infinispan address.

In most cases, this is completely unnecessary, as the Node can always be recreated from the address via a NodeFactory<Address>. 

Known offenders are:
* org.wildfly.clustering.server.registry.CacheRegistry which stores the Node as a cache key.
* org.wildfly.clustering.server.provider.CacheServiceProviderRegistry which stores a Set<Node> as a cache value.



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the jboss-jira mailing list