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

Don't recreate the read-attribute op ModelNode for every read

    XMLWordPrintable

Details

    • Enhancement
    • Status: Open (View Workflow)
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • MP Metrics
    • None
    • ---
    • ---

    Description

      MetricsCollector (both in MP Metrics and base) is building up a ModelNode for the read op for each read. Look into creating a static one and cloning it and then just setting the dynamic parts (the address and the attribute name.)

      We do thousands of these per scrape so a minor optimization is a bit less minor.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: