Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

We should try and use concurrency strategies that are efficient. For example, see ConcurrentHashMap, ConcurrentHashMap#newKeySet. We should also be careful to size and configure these data structures appropriately. Resign Using a default sized ConcurrentHashMap for a large set of objects is expensive and generally a waste. Forgetting to set the concurrency level appropriately when there is classloading level concurrency going on is also a real problem.

...