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

Reduce memory pressure of TreeNode `tags` variable

    XMLWordPrintableJSON

Details

    Description

      By default, the TreeNode `tags` variable is initialized to a `mutable.Map.empty`, which defaults to a map with an internal 16 element hashtable array. For plans with a high number of TreeNodes with empty tags, this adds unnecessary driver memory pressure, especially for large expression trees. Reduce the memory pressure by lazily initializing this variable.

      Attachments

        Issue Links

          Activity

            People

              n-young-db Nick Young
              n-young-db Nick Young
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: