Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-935

Possible performance improvement on string escape functions

    XMLWordPrintableJSON

Details

    Description

      The escape functions for HTML etc. use the same code and the same initialisation tables for the escape and unescape functions, and while this is an elegant approach it leads to a number of deficiencies:
      1. The code is very much less efficient than it could be
      2. A new output string is created even when no conversion is required
      3. No mapping is provided for characters that do not have a specific representation (for example HTML 0x101 should become ā )
      The proposal is to use a new mapping technique to address these issues

      Attachments

        1. tempproject1.zip
          17 kB
          Peter Wall
        2. LANG-935.patch
          2 kB
          Thomas Neidhart

        Issue Links

          Activity

            People

              Unassigned Unassigned
              pwall Peter Wall
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: