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 space leak in System.Metrics.Label.set #21

Merged
merged 2 commits into from
Oct 8, 2017
Merged

Fix space leak in System.Metrics.Label.set #21

merged 2 commits into from
Oct 8, 2017

Conversation

arybczak
Copy link

@arybczak arybczak commented Oct 6, 2017

atomicModifyIORef leaks space because function is applied lazily to the value stored (see https://hackage.haskell.org/package/base-4.10.0.0/docs/Data-IORef.html#v:atomicModifyIORef).

The other commit just makes the definition of modify a bit cleaner.

@23Skidoo 23Skidoo merged commit 79b5484 into L0neGamer:master Oct 8, 2017
@23Skidoo
Copy link
Collaborator

23Skidoo commented Oct 8, 2017

Merged, thanks!

@23Skidoo
Copy link
Collaborator

Released version 0.1.1.3 on Hackage.

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