Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-44485

optimize generateTreeString code path

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.4.1
    • 3.5.0, 4.0.0
    • Spark Core
    • None

    Description

      In `TreeNode.generateTreeString`, we observed inefficiency in scala collection operations and virtual function call.

      This inefficiency become significant in large plan (we hit a example of more than 1000 nodes). So it’s worth optimizing the super hot code path. By rewriting into native Java code(not so sweet as scala syntax sugar though), we should be able to get rid of most of the overhead.

       

       

      Attachments

        Activity

          People

            liuzq12 Ziqi Liu
            liuzq12 Ziqi Liu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: