Hyukjin Kwon created SPARK-62293:
------------------------------------
Summary: 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
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]