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

Use S.foldl' on each chunk when strictly folding a lazy bytestring. #21

Merged
merged 1 commit into from
Nov 9, 2014

Conversation

lemmih
Copy link
Contributor

@lemmih lemmih commented May 11, 2014

This improves the performance of the digest-pure library by more than an order of magnitude.

@gregorycollins
Copy link
Member

Like I said on the original bug, seems obvious to me, but let's get a second opinion before merging.

@tibbe
Copy link
Member

tibbe commented May 12, 2014

👍

/cc @dcoutts

@dcoutts
Copy link
Contributor

dcoutts commented Nov 9, 2014

I just tracked this down independently (the crc16 in acid-state which was the cause of a big stack spike in hackage-server). Bit embarassed to discover this. Fortunately git blame says I can blame Don ;-).

dcoutts added a commit that referenced this pull request Nov 9, 2014
Use S.foldl' on each chunk when strictly folding a lazy bytestring.
@dcoutts dcoutts merged commit 39de720 into haskell:master Nov 9, 2014
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.

4 participants