Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-3577

JspFactory.getDefaultFactory() is synchronized, We can cache the return value to improve performance

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.1.1
    • 2.2.3
    • Dispatch Filter
    • None

    Description

      JspFactory.getDefaultFactory() is synchronized, we can cache the return value to improve performance.

      In the function doExecute(),

      ./src/core/src/main/java/org/apache/struts2/dispatcher/VelocityResult.java line: 122, 137

      The value returned by JspFactory.getDefaultFactory() can be cached to reduce race and improve performance
      (Similar to the Apache Bug, https://issues.apache.org/bugzilla/show_bug.cgi?id=44408)

      Attachments

        Activity

          People

            lukaszlenart Lukasz Lenart
            nancyesmis Xiaoming Shi
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: