[ 
https://issues.apache.org/jira/browse/FLINK-41605?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18150324#comment-18150324
 ] 

Sergey Nuyanzin commented on FLINK-41605:
-----------------------------------------

Merged as 
[7be0e44800e3c016377d89459c286b4faa960057|https://github.com/apache/flink/commit/7be0e44800e3c016377d89459c286b4faa960057]

> 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
>            Priority: Major
>              Labels: pull-request-available
>
> 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