[jbosstools-issues] [JBoss JIRA] (JBIDE-20580) Performance: EL resolvers unnecessarily create a lot of empty ArrayList instances
Viacheslav Kabanovich (JIRA)
issues at jboss.org
Fri Sep 4 23:33:00 EDT 2015
Viacheslav Kabanovich created JBIDE-20580:
---------------------------------------------
Summary: Performance: EL resolvers unnecessarily create a lot of empty ArrayList instances
Key: JBIDE-20580
URL: https://issues.jboss.org/browse/JBIDE-20580
Project: Tools (JBoss Tools)
Issue Type: Task
Components: cdi, common/jst/core, jsf, seam2
Affects Versions: 4.3.0.Beta2
Reporter: Viacheslav Kabanovich
Assignee: Viacheslav Kabanovich
Fix For: 4.3.0.CR1
Methods resolveVariables(), resolveELOperand() in all EL resolvers create a new instance of ArrayList, even if it turns out that there is nothing to return. Moreover, in some cases several new instances are created. Such practice creates a great load on memory and performance at full build of a big workspace.
We probably have many other places that unnecessarily create new instances of lists, sets, map and other classes, our code should be revised for it. This issue only covers most often called methods in EL resolvers that really may affect performance.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the jbosstools-issues
mailing list