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

Simplify deepseq workaround #162

Merged
merged 1 commit into from Nov 29, 2015
Merged

Conversation

treeowl
Copy link
Contributor

@treeowl treeowl commented Nov 27, 2015

Calculating the length of a lazy ByteString forces it deeply (each chunk has to be examined and their lengths summed). Thus we can use BSL.length instead of copying the deepseq definition.

Really, we should use deepseq when bytestring is new enough, in case some future change invalidates this workaround.

Calculating the length of a lazy `ByteString` forces it deeply (each chunk has to be examined and their lengths summed). Thus we can use `BSL.length` instead of copying the `deepseq` definition.

Really, we *should* use `deepseq` when `bytestring` is new enough, in case some future change invalidates this workaround.
mightybyte added a commit that referenced this pull request Nov 29, 2015
Simplify deepseq workaround
@mightybyte mightybyte merged commit ef972ad into snapframework:master Nov 29, 2015
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