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

Add Rel8.TH.deriveRel8able #141

Draft
wants to merge 8 commits into
base: master
Choose a base branch
from
Draft

Add Rel8.TH.deriveRel8able #141

wants to merge 8 commits into from

Conversation

ocharles
Copy link
Contributor

@ocharles ocharles commented Nov 7, 2021

This Template Haskell function derives Rel8able instances, like the Generic deriving strategy. If my hypothesis in #136 is right, this may lead to faster compilation times for modules that need to derive Rel8able instances.

@ocharles
Copy link
Contributor Author

ocharles commented Nov 7, 2021

So far this is looking quite promising. On my laptop, CircuitHub.Model.Order takes 8.7s to compile, but using deriveRel8able it takes 3.8s - so a good 2.3x speedup. This work is not at all complete yet though - there's no labels, and no support for anything except Column. Hopefully adding that in still keeps us above 2x though.

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

1 participant