Skip to content
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

Fix a memory leak in reifyTypeable (fixes #54) #55

Merged
merged 4 commits into from Dec 10, 2023
Merged

Fix a memory leak in reifyTypeable (fixes #54) #55

merged 4 commits into from Dec 10, 2023

Conversation

mniip
Copy link
Contributor

@mniip mniip commented Dec 10, 2023

Admittedly I am not 100% sure what the point of reflectBefore was (does anyone else?)

I strongly suspect it was trying to reinvent evaluate out of return and $!, which I've now replaced with an actual evaluate $ k p call.

Copy link
Collaborator

@RyanGlScott RyanGlScott left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @mniip! I pushed a fix for an unrelated issue in the examples.

Other than some minor suggestions below, LGTM.

fast/Data/Reflection.hs Outdated Show resolved Hide resolved
fast/Data/Reflection.hs Outdated Show resolved Hide resolved
fast/Data/Reflection.hs Outdated Show resolved Hide resolved
slow/Data/Reflection.hs Outdated Show resolved Hide resolved
slow/Data/Reflection.hs Outdated Show resolved Hide resolved
slow/Data/Reflection.hs Outdated Show resolved Hide resolved
Co-authored-by: Ryan Scott <ryan.gl.scott@gmail.com>
@RyanGlScott RyanGlScott merged commit a9443f4 into ekmett:master Dec 10, 2023
16 checks passed
@mniip mniip deleted the leak branch December 10, 2023 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants