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 a specialized version of replicateM for binary decoding #1807

Merged
merged 1 commit into from
May 22, 2020

Conversation

sjakobi
Copy link
Collaborator

@sjakobi sjakobi commented May 22, 2020

This reduces timings for decoding the cache for
https://raw.githubusercontent.com/vmchale/cpkg/0003ec5af2859008424aec06c2db0437a6a22ff9/pkgs/pkg-set.dhall
with dhall decode --quiet by 8.7% to 12.3%.

Context: #1804

Comment on lines +1262 to +1263
x <- decoder
xs <- go (n - 1)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I played with bangs (!) on x and xs, but this was the fastest version for my benchmark.

@mergify mergify bot merged commit d339948 into master May 22, 2020
@mergify mergify bot deleted the sjakobi/optimize-replicatem branch May 22, 2020 22:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants