Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-2900

Cut memory use by AttributeDefinition.arbitraryDescriptors

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Done
    • Minor
    • 3.0.0.Beta24
    • None
    • Management
    • None

    Description

      Currently AttributeDefinition.arbitraryDescriptors is:

      private final Map<String, ModelNode> arbitraryDescriptors = new HashMap<>();

      In most cases that can be Collections.emptyMap(), and if not it can be an unmodifiable map saving the need to allocate an unmodifiable wrapper every time the getter is called.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: