Closed
Description
#359 introduced a trick that replaces a write to an array by initializing the array with the same element. We can use the same trick in some more places:
-
insertNewKey.snocNewLeaf
(refactor to use snoc #407):unordered-containers/Data/HashMap/Internal.hs
Lines 828 to 833 in f59bb26
-
insertModifyingArr
(refactor to use snoc #407) :unordered-containers/Data/HashMap/Internal.hs
Lines 1008 to 1025 in f59bb26
-
updateOrSnocWithKey
(refactor to use snoc #407) :unordered-containers/Data/HashMap/Internal.hs
Lines 2161 to 2178 in f59bb26
-
Strict.updateOrSnocWithKey