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

Sergey Nuyanzin commented on FLINK-41464:
-----------------------------------------

Merged as 
[0396f3c19164c582e41e4aeebb1d022e70da9913|https://github.com/apache/flink/commit/0396f3c19164c582e41e4aeebb1d022e70da9913]

> JavaCodeSplitter is slow for large generated code
> -------------------------------------------------
>
>                 Key: FLINK-41464
>                 URL: https://issues.apache.org/jira/browse/FLINK-41464
>             Project: Flink
>          Issue Type: Improvement
>          Components: Table SQL / Runtime
>            Reporter: Sergey Nuyanzin
>            Assignee: Sergey Nuyanzin
>            Priority: Major
>              Labels: pull-request-available
>
> The Java code splitter rewrites generated code with ANTLR's 
> TokenStreamRewriter. Each getText call reprocesses all recorded edits, and 
> that processing is quadratic in the number of edits. Large generated classes 
> produce many edits, one per field reference for example, and getText is 
> called many times.



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

Reply via email to