24
I am wondering about the parameters for constructing a ConcurrentHashMap:
initialCapacityis 16 by default (understood).loadFactoris 0.75 by default.concurrencyLevelis 16 by default.
My questions are:
- What criteria should be used to adjust
loadFactorup or down? - How do we establish the number of concurrently updating threads?
- What criteria should be used to adjust
concurrencyLevelup or down?
Additionally:
- What are the hallmarks of a good hashcode implementation? (If an SO question addresses this, just link to it.)
Thank you!