Skip to content

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

Merged
23Skidoo merged 2 commits intohaskell-github-trust:masterfrom
arybczak:master
Oct 8, 2017
Merged

Fix space leak in System.Metrics.Label.set#21
23Skidoo merged 2 commits intohaskell-github-trust:masterfrom
arybczak:master

Conversation

@arybczak
Copy link
Copy Markdown

@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 haskell-github-trust:master Oct 8, 2017
@23Skidoo
Copy link
Copy Markdown
Collaborator

23Skidoo commented Oct 8, 2017

Merged, thanks!

@23Skidoo
Copy link
Copy Markdown
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.

2 participants