[ 
https://issues.apache.org/jira/browse/SPARK-62293?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Hyukjin Kwon resolved SPARK-62293.
----------------------------------
    Fix Version/s: connect-rust-4.4.0
       Resolution: Fixed

Issue resolved by pull request 964
[https://github.com/apache/spark-connect-rust/pull/964]

> Hold the state of the core's SparkSession behind one Arc, so that a clone of 
> a session is one reference count
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: SPARK-62293
>                 URL: https://issues.apache.org/jira/browse/SPARK-62293
>             Project: Spark
>          Issue Type: Improvement
>          Components: Connect
>    Affects Versions: 5.0.0
>            Reporter: Hyukjin Kwon
>            Assignee: Hyukjin Kwon
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: connect-rust-4.4.0
>
>
> spark_connect_core::SparkSession holds about 12 Arcs, so each clone of a 
> session (the Python client clones the session for each request view of a 
> DataFrame) is 12 atomic increments and 12 decrements. perf puts that clone 
> and drop at about 8-20% of the cost of a DataFrame method such as alias since 
> SPARK-62218. Hold the state of the session behind one Arc, so that a clone is 
> one reference count, keeping the public API and the semantics of a clone 
> (shared state) as they are.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to