You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Nick Young (Jira)" <ji...@apache.org> on 2024/04/29 18:15:00 UTC

[jira] [Created] (SPARK-48047) Reduce memory pressure of TreeNode `tags` variable

Nick Young created SPARK-48047:
----------------------------------

             Summary: Reduce memory pressure of TreeNode `tags` variable
                 Key: SPARK-48047
                 URL: https://issues.apache.org/jira/browse/SPARK-48047
             Project: Spark
          Issue Type: Improvement
          Components: Optimizer
    Affects Versions: 4.0.0
            Reporter: Nick Young


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.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org