Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-8921

Split code generated call expression

    XMLWordPrintableJSON

Details

    Description

      In FLINK-8274 we introduced the possibility of splitting the generated code into multiple methods in order to exceed the JVMs maximum method size (see also https://docs.oracle.com/javase/specs/jvms/se7/html/jvms-4.html#jvms-4.9).

      At the moment we only split methods by fields, however, this is not enough in all case. We should also split expressions. I suggest to split the operands of a RexCall in org.apache.flink.table.codegen.CodeGenerator#visitCall if we reach a certain threshold. However, this should happen as lazily as possible to keep the runtime overhead low.

      Attachments

        Issue Links

          Activity

            People

              xueyu xueyu
              twalthr Timo Walther
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m