We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lazy.fromListWith
I believe that the thunks created by the combining function contain unnecessary references to the map keys.
unordered-containers/Data/HashMap/Internal.hs
Lines 2077 to 2079 in f1ea9a4
Lines 1026 to 1066 in f1ea9a4
Core:
fromListWith = \ (@k) (@v) _ [Occ=Dead] ($dHashable :: Hashable k) (eta :: v -> v -> v) (eta1 :: [(k, v)]) -> joinrec { go1 [Occ=LoopBreaker, Dmd=SCS(C1(L))] :: [(k, v)] -> HashMap k v -> HashMap k v [LclId[JoinId(2)], Arity=2, Str=<1L><1L>, Unf=OtherCon []] go1 (ds :: [(k, v)]) (eta2 [OS=OneShot] :: HashMap k v) = case ds of { [] -> eta2; : y ys -> case y of { (k1, v1) -> jump go1 ys ($wunsafeInsertWithKey @k @v $dHashable (\ _ [Occ=Dead] -> eta) k1 v1 eta2) } }; } in jump go1 eta1 (Empty @k @v)
The text was updated successfully, but these errors were encountered:
Add regression test for #382
cb71632
8ea2dea
Fix space leak in Lazy.fromListWith (#386)
26a1c33
Fixes #382
sjakobi
Successfully merging a pull request may close this issue.
I believe that the thunks created by the combining function contain unnecessary references to the map keys.
unordered-containers/Data/HashMap/Internal.hs
Lines 2077 to 2079 in f1ea9a4
unordered-containers/Data/HashMap/Internal.hs
Lines 1026 to 1066 in f1ea9a4
Core:
The text was updated successfully, but these errors were encountered: