You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Similar to the birthday problem, the amount of writer threads required to have contention on a map with T shards with high probablity is O(√T). So I propose setting the default number of shards to something proportional to the square of cores, for example cores²/4 or cores²/2 instead of 4*cores. cores²/2 is what I use in my server with 48 cores, but cores²/4 is not that different.