-
- Downloads
[SPARK-18991][CORE] Change ContextCleaner.referenceBuffer to use...
[SPARK-18991][CORE] Change ContextCleaner.referenceBuffer to use ConcurrentHashMap to make it faster ## What changes were proposed in this pull request? The time complexity of ConcurrentHashMap's `remove` is O(1). Changing ContextCleaner.referenceBuffer's type from `ConcurrentLinkedQueue` to `ConcurrentHashMap's` will make the removal much faster. ## How was this patch tested? Jenkins Author: Shixiong Zhu <shixiong@databricks.com> Closes #16390 from zsxwing/SPARK-18991. (cherry picked from commit a848f0ba) Signed-off-by:Shixiong Zhu <shixiong@databricks.com>
Please register or sign in to comment