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

Cut memory use by AttributeDefinition.arbitraryDescriptors

XMLWordPrintable

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

      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.

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

                Created:
                Updated:
                Resolved: