Sergey Nuyanzin created FLINK-41605:
---------------------------------------

             Summary: Escape and check XML characters in a single pass in 
VariantToXmlWriter
                 Key: FLINK-41605
                 URL: https://issues.apache.org/jira/browse/FLINK-41605
             Project: Flink
          Issue Type: Improvement
          Components: Table SQL / Runtime
            Reporter: Sergey Nuyanzin
            Assignee: Sergey Nuyanzin


VariantToXmlWriter, which XML_STRING uses, goes over every string twice: first 
a regex looks for
characters that XML 1.0 doesn't allow, then a second loop escapes the string 
one character at a time.
For long strings this is a large part of XML_STRING's cost.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to