You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Carter Kozak (JIRA)" <ji...@apache.org> on 2018/07/16 17:39:00 UTC

[jira] [Assigned] (LOG4J2-2376) StringBuilders.escapeXml should run in linear time

     [ https://issues.apache.org/jira/browse/LOG4J2-2376?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carter Kozak reassigned LOG4J2-2376:
------------------------------------

    Assignee: Carter Kozak

> StringBuilders.escapeXml should run in linear time
> --------------------------------------------------
>
>                 Key: LOG4J2-2376
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-2376
>             Project: Log4j 2
>          Issue Type: Improvement
>    Affects Versions: 2.11.0
>            Reporter: Carter Kozak
>            Assignee: Carter Kozak
>            Priority: Major
>             Fix For: 3.0.0, 2.11.1
>
>
> The current implementation is O(n^2) because StringBuilder.insert copies the remaining buffer contents for each escape.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)