You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "cloud-fan (via GitHub)" <gi...@apache.org> on 2023/04/04 00:49:40 UTC

[GitHub] [spark] cloud-fan commented on pull request #40629: [SPARK-42980][CORE] Implement a lightweight SmallBroadcast

cloud-fan commented on PR #40629:
URL: https://github.com/apache/spark/pull/40629#issuecomment-1495187524

   @mridulm the use case we found so far is the broadcasting of hadoop conf: https://github.com/apache/spark/blob/master/sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/parquet/ParquetFileFormat.scala#L161-L162
   
   Simply inline the variable does not improve the perf because:
   1. hadoop conf is not that small
   2. if the executor is powerful like 16 cores, the hadoop conf has 16 copies in the executor JVM, which is a waste.
   
   We might find more cases in the future, as SQL operators need to broadcast small data (but not as small as a single integer) sometimes.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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