-
Notifications
You must be signed in to change notification settings - Fork 842
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
Alexeyzab 3006 speed up store instances #3260
Conversation
…exeyzab/stack into alexeyzab-3006-speed-up-store-instances
Possible enhancement: instead of storing a |
To make sure I understand this correctly, a checklist of what needs to be done here:
Should I also remove the commented-out implementations of |
@alexeyzab I'd leave off the data StaticSHA256 = StaticSHA256 !Word64 !Word64 !Word64 !Word64 We don't want to use a signed representation since we're just storing the raw bits. And we need the strictness annotations so that GHC can unpack the values directly into the constructor, making the representation much smaller. |
Also, if you're planning on continuing updates on this, can I recommend that you merge my branch into the one you created, and I'll close out this PR? |
@snoyberg Ah, I understand, thanks for explaining that! Sure, is that done by using the |
No, you'll have to do it on your machine. Check out the branch you were working on and run:
Then push to your repo and you should have all the changes. Depending on how adventurous I'm feeling, I may write a helper library right now for the |
Ah, that's what I've done already, wasn't sure if there was something else I missed. Thanks again! Hm, it'd probably take me longer to implement this and I wouldn't want to slow things down. I am curious what that trick would end up looking like though. |
FYI, I don't see the commits I pushed here on your PR, so I don't think it's been pushed to the right branch yet. |
Whoops, my bad. Should be done now. |
Cool, I'll close this up |
This updates #3120 to work with the new extensible snapshots code. Related to #3006. Pinging @alexeyzab.