Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-9609

Avoid unnecessary marshalling of AddressableNode wherever possible

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • 11.0.0.Final
    • Clustering
    • None

      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.

              pferraro@redhat.com Paul Ferraro
              pferraro@redhat.com Paul Ferraro
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: