We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4fa391 commit bd31e60Copy full SHA for bd31e60
Data/HashMap/Internal.hs
@@ -1883,6 +1883,9 @@ differenceArrays diff s b1 ary1 t1 b2 ary2
1883
n -> bitmapIndexedOrFull bResult <$> (A.unsafeFreeze =<< A.shrink mary n)
1884
{-# INLINABLE differenceArrays #-}
1885
1886
+-- TODO: This could be faster if we would keep track of which elements of ary2
1887
+-- we've already matched. Those could be skipped when we check the following
1888
+-- elements of ary1.
1889
differenceCollisions :: Eq k => Hash -> A.Array (Leaf k v1) -> HashMap k v1 -> Hash -> A.Array (Leaf k v2) -> HashMap k v1
1890
differenceCollisions h1 ary1 t1 h2 ary2
1891
| h1 == h2 =
0 commit comments