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
It would be good to avoid allocating fresh Leaf nodes – we can simply use the ones from the first argument.
In intersectionCollisions it should be possible to perform the search-and-swap operations on the output array itself, so we don't have to allocate the intermediate mary2 array.
To preserve code sharing with intersectionWith[Key], it may be possible to generalize intersectionWithKey# to have a type similar to filterMapAux:
These are some follow-up tasks based on the code introduced in #406:
unordered-containers/Data/HashMap/Internal.hs
Lines 1760 to 1915 in d24cc1f
Leaf
nodes – we can simply use the ones from the first argument.intersectionCollisions
it should be possible to perform the search-and-swap operations on the output array itself, so we don't have to allocate the intermediatemary2
array.To preserve code sharing with
intersectionWith[Key]
, it may be possible to generalizeintersectionWithKey#
to have a type similar tofilterMapAux
:unordered-containers/Data/HashMap/Internal.hs
Lines 2053 to 2060 in d24cc1f
The text was updated successfully, but these errors were encountered: