Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-20580

Performance: EL resolvers unnecessarily create a lot of empty ArrayList instances

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • 4.3.0.CR1
    • 4.3.0.Beta2
    • cdi, common, jsf, seam2
    • None

      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.

            scabanovich Viacheslav Kabanovich (Inactive)
            scabanovich Viacheslav Kabanovich (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: