[jboss-jira] [JBoss JIRA] (WFCORE-2900) Cut memory use by AttributeDefinition.arbitraryDescriptors
Brian Stansberry (JIRA)
issues at jboss.org
Thu Jun 1 16:31:00 EDT 2017
Brian Stansberry created WFCORE-2900:
----------------------------------------
Summary: Cut memory use by AttributeDefinition.arbitraryDescriptors
Key: WFCORE-2900
URL: https://issues.jboss.org/browse/WFCORE-2900
Project: WildFly Core
Issue Type: Enhancement
Components: Domain Management
Reporter: Brian Stansberry
Assignee: Brian Stansberry
Priority: Minor
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.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
More information about the jboss-jira
mailing list