Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-18991

Change ContextCleaner.referenceBuffer to ConcurrentHashMap to make it faster

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.1.1, 2.2.0
    • Spark Core
    • None

    Description

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

      Attachments

        Issue Links

          Activity

            People

              zsxwing Shixiong Zhu
              zsxwing Shixiong Zhu
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: