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

cleanupActionName should not compile regex every request

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.3.15
    • Core Actions
    • None
    • Patch, Important

    Description

      Please find attached patch proposal, cuts execution time in half.

      Run time compiled regex: 174ms 100000 rounds
      Run time runtime regex: 258ms 100000 rounds
      Run time compiled regex: 166ms 100000 rounds
      Run time runtime regex: 248ms 100000 rounds

      Attachments

        1. compile_pattern_once.patch
          2 kB
          Johno Crawford

        Issue Links

          Activity

            People

              lukaszlenart Lukasz Lenart
              johno Johno Crawford
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: