Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-35555

Refactor ServletContextUtil.getLastModified() from recursive to iterative.

    Details

    • Type: Story
    • Status: Closed
    • Priority: Minor
    • Resolution: Completed
    • Affects Version/s: None
    • Fix Version/s: 6.2.0 CE M6
    • Labels:
      None
    • Environment:
      Tested in Trunk CE (2ec46e2f7788d9759111b30981db9c3cad2735ee) with MySQL 5.5, Tomcat 7, and Java 1.7.0_21

      Description

      Yourkit analysis of the Portal bootup process has found a bottleneck in the ServletContextUtil.getLastModified() function.

      Performance improvement to this function is gained by a refactor from recursive to iterative. Thus, instead of doing depth-first search, we do a breadth-first search and do not have the overhead of recursive calls.

        Attachments

          Activity

            People

            • Assignee:
              lawrence.lee Lawrence Lee
              Reporter:
              james.lefeu James Lefeu (Inactive)
              Recent user:
              Shalaka Tendulkar
              Participants of an Issue:
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Packages

                Version Package
                6.2.0 CE M6