Sergey Nuyanzin created FLINK-41464:
---------------------------------------

             Summary: 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


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