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)