haiyangsun-db opened a new pull request #32865:
URL: https://github.com/apache/spark/pull/32865


   ### What changes were proposed in this pull request?
   
   Using copy-on-write for `SQLConf.sqlConfEntries` and 
`SQLConf.staticConfKeys` to reduce contention in concurrent workloads.
   
   ### Why are the changes needed?
   
   The global locks used to protect `SQLConf.sqlConfEntries` map and the 
`SQLConf.staticConfKeys` set can cause significant contention on the `SQLConf` 
instance in a concurrent setting. 
   
   Using copy-on-write versions should reduce the contention given that 
modifications to the configs are relatively rare.
   


-- 
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.

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



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

Reply via email to