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

Inefficient use of OperationContext.readResourceFromRoot

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 11.0.0.CR1
    • None
    • None
    • None

    Description

      The single param OperationContext.readResourceFromRoot(...) variant can be quite expensive, as can be the 2 param variant if the 'recursive' param is true. The op returns a clone of the management model, and creating the clone can be expensive if the cloning is recursive and the affected tree is large.

      There are a lot of calls like this in full WildFly that look like they could use the 2 param variant with recursive = false. Some of these are cloning the entire resource tree.

      Attachments

        Issue Links

          Activity

            People

              bstansbe@redhat.com Brian Stansberry
              bstansbe@redhat.com Brian Stansberry
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: