Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-2376

StringBuilders.escapeXml should run in linear time

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.11.0
    • 2.11.1, 3.0.0
    • None
    • None

    Description

      The current implementation is O(n^2) because StringBuilder.insert copies the remaining buffer contents for each escape.

      Attachments

        Activity

          People

            ckozak Carter Kozak
            ckozak Carter Kozak
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: