-
Notifications
You must be signed in to change notification settings - Fork 100
Get rid of lookupCont #410
New issue
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
Comments
Hrmm.... Just read the comments, which suggest there's a theoretical possibility of a performance reason too. Guess we should double check, though I think it's rather unlikely to be an issue. |
How do you suggest replacing its use in |
Is there some reason those don't use |
Am I right that |
I guess we could just inline the ones that return unboxed sums, like doing |
@oberblastmeister, |
@treeowl, the |
Yeah, the unboxed sums will stick around. But does it really matter if we return the collision index when we don't need it? I don't think we can make that go away with just inlining unless we do something like |
@oberblastmeister, oh, there's one other complication... The |
What do you mean by that? |
When |
But ... like I said before, I would be really surprised if it mattered measurably. |
Since the discussion suggests that this issue may not be entirely straightforward to address, I've removed the I agree that |
Once someone (likely me) writes the alternative code, someone (likely not me) can benchmark. (I do not trust my ability to get my system quiet/stable enough to do a decent job of that in general, and my computer is kind of old.) |
I can run the benchmarks. Given their noisiness (#332), I don't think this will be very helpful though. Diffing the generated code might also give us some clues. See https://github.com/haskell-unordered-containers/unordered-containers/blob/master/CONTRIBUTING.md#inspecting-the-generated-code for instructions. |
lookupCont
was an ugly and barely comprehensible way to reduce the amount of compatibility code we needed to support GHC versions without unboxed sums. Since we no longer support those, I believe we should manually inline it intolookupRecordCollision#
and barbecue its remains.The text was updated successfully, but these errors were encountered: