Replace Collections.synchronizedSet() with ConcurrentHashMap.newKeySet()
ConcurrentHashMap.newKeySet() provides better multi-threaded performance thanks to judicious use of synchronization.
Also it does not require "external" synchronization for iteration.
This PR has not had activity in the past 2 weeks, labeling it as stale. If the PR is waiting for review, notify the [email protected] list. Thank you for your contribution!
I'm out of office this week. If anybody can pick this up, please do. Otherwise I'll return to it next wek.
Hi, I am fine to apply the "safe" changes where iteration or an atomic add+remove is not required. But all others should be reverted and external synchronization using synchronizedSet should be used. Let's only do this for simple sets where we never iterate and where we only check and add single entries from different threads. Uwe
This PR has not had activity in the past 2 weeks, labeling it as stale. If the PR is waiting for review, notify the [email protected] list. Thank you for your contribution!