Streamline keys and elems#158
Streamline keys and elems#158treeowl wants to merge 1 commit intohaskell-unordered-containers:masterfrom
Conversation
Make sure `keys` and `elems` won't build silly pairs and thunks to deconstruct them.
|
Isn't a guarantee that The current implementation is way simpler to understand, |
|
It would be nice to get some numbers that demonstrate the usefulness of this change. |
|
Ah, good questions. We need to look at the Core and see if the pairs and selector thunks are eliminated by fusion. @sjakobi, I've never had a clue of the correct way to ask Cabal to ask GHC to give me |
What I usually do is insert a |
|
I'll mark this as a draft to clarify that we need benchmark results and/or insights regarding the Core before we can properly consider a merge. |
Make sure
keysandelemswon't build silly pairs andthunks to deconstruct them.