spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Prashant Sharma (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SPARK-18991) Change ContextCleaner.referenceBuffer to ConcurrentHashMap to make it faster
Date Mon, 02 Jan 2017 11:18:58 GMT

    [ https://issues.apache.org/jira/browse/SPARK-18991?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15792707#comment-15792707
] 

Prashant Sharma commented on SPARK-18991:
-----------------------------------------

Thank you for the fix !

> Change ContextCleaner.referenceBuffer to ConcurrentHashMap to make it faster
> ----------------------------------------------------------------------------
>
>                 Key: SPARK-18991
>                 URL: https://issues.apache.org/jira/browse/SPARK-18991
>             Project: Spark
>          Issue Type: Improvement
>          Components: Spark Core
>            Reporter: Shixiong Zhu
>            Assignee: Shixiong Zhu
>             Fix For: 2.1.1, 2.2.0
>
>
> Right now `ContextCleaner.referenceBuffer` is ConcurrentLinkedQueue and the time complexity
of the `remove` action is O ( n ). It can be changed to use ConcurrentHashMap whose `remove`
is O(1).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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


Mime
View raw message