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

Writer space leak fix #90

Merged
merged 16 commits into from Jan 6, 2019
Merged

Writer space leak fix #90

merged 16 commits into from Jan 6, 2019

Conversation

robrix
Copy link
Contributor

@robrix robrix commented Jan 5, 2019

This PR:

@robrix robrix mentioned this pull request Jan 5, 2019
5 tasks


newtype WriterC w m a = WriterC { runWriterC :: m (w, a) }
newtype WriterC w m a = WriterC { runWriterC :: w -> m (w, a) }
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we make some notes in the documentation (doesn’t have to be Haddock) about why we chose this formulation?

, fused-effects
hs-source-dirs: benchmark
default-language: Haskell2010
ghc-options: -threaded -rtsopts "-with-rtsopts=-N -A4m -n2m" -j
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should this contain -O2?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Unfortunately that causes cabal check to complain. Plus, I think it’s valuable to be able to run the benchmarks at different optimization levels and see how the performance varies.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Weird re. cabal check, but good enough for me.

@robrix
Copy link
Contributor Author

robrix commented Jan 6, 2019

@patrickt: Documented with a link to the mailing list post, and also noted the current limitations.

@patrickt
Copy link
Collaborator

patrickt commented Jan 6, 2019

Looks terrific.

@robrix robrix merged commit 74c027b into master Jan 6, 2019
@robrix robrix deleted the writer-space-leak-fix branch January 6, 2019 16:09
@robrix robrix mentioned this pull request Feb 24, 2019
10 tasks
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