Sergey Nuyanzin created FLINK-41382:
---------------------------------------
Summary: Split generated methods can still be too large to be
JIT-compiled
Key: FLINK-41382
URL: https://issues.apache.org/jira/browse/FLINK-41382
Project: Flink
Issue Type: Technical Debt
Components: Table SQL / Runtime
Reporter: Sergey Nuyanzin
Assignee: Sergey Nuyanzin
Generated code can contain very long methods. The code splitter moves their
statements into smaller methods. The original method then calls these smaller
methods one after another.
This list of calls is not split. With very large generated code, it can contain
thousands of calls. The method is then too large for the JVM to JIT-compile, so
it runs in the interpreter for every record.
Example: for a CASE with 10000 branches(FLINK-41380), this method took about 9%
of the CPU time.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)