[jboss-jira] [JBoss JIRA] (WFCORE-921) Remove n2 model node cloning in ServerOperationResolver

Brian Stansberry (JIRA) issues at jboss.org
Wed Aug 26 14:52:43 EDT 2015


Brian Stansberry created WFCORE-921:
---------------------------------------

             Summary: Remove n2 model node cloning in ServerOperationResolver
                 Key: WFCORE-921
                 URL: https://issues.jboss.org/browse/WFCORE-921
             Project: WildFly Core
          Issue Type: Bug
          Components: Domain Management
    Affects Versions: 2.0.0.Beta4
            Reporter: Brian Stansberry
            Assignee: Brian Stansberry
             Fix For: 2.0.0.Beta5


ServerOperationResolver gets called for each operation in a composite.

For each call it clones the configuration model.

It then calls node.asPropertyList() in various spots, which in turn results in a clone of the value of each Property. In particular it does this over the profiles, which means each profile gets cloned.

For very large configurations, this is extremely inefficient. One user was experimenting with adding 1000s of data sources and found it would take over an hour to complete the work. I was able to do it in 30 seconds by correcting these problems.

There are other areas where we may be incurring unneeded expense via calls to node.asPropertyList().



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


More information about the jboss-jira mailing list