Uploaded image for project: 'VCL'
  1. VCL
  2. VCL-56

Add '-no_match_vars' to 'use English' in utils.pm

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • None
    • None
    • vcld (backend)
    • None

    Description

      utils.pm has a 'use English' call but doesn't specify -no_match_vars. I came across this in the English module doc:

      This module can provoke sizeable inefficiencies for regular expressions, due to unfortunate implementation details. If performance matters in your application and you don't need $PREMATCH, $MATCH, or $POSTMATCH, try doing

      use English qw( -no_match_vars ) ;. It is especially important to do this in modules to avoid penalizing all applications which use them.

      Attachments

        Activity

          People

            Unassigned Unassigned
            arkurth Andrew Kurth
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: