Settle performance issues in Map and Set.