-
Notifications
You must be signed in to change notification settings - Fork 48
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
Compilation time and GHC's fsimpl-tick-factor #112
Comments
I'm afraid I don't know of any easy solutions to this. It might be interesting to see if using |
I'm not exactly sure of how to use promoted TFs from
It doesn't seem to produce a GHC literal type-level list. Does it? |
I'd be very interested in a minimal working example! |
Huh, I don't know how to use them either. In GHCi,
And if I ask if that's the same as |
@acowley From what I gather in https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/using-optimisation.html#ghc-flag--fsimpl-tick-factor=%E2%9F%A8n%E2%9F%A9 Do you have an idea of which rewrite rules are triggered here and if that's possible to deactivate them? I'd like not to have to build my file with -O0 and deactivate all optimization... |
It's weird because the error mentions " When trying RuleFired Class op $p1RElem" but there are no rewrite rules in vinyl... With ddump-simpl-stats I see:
We see indeed a LOT of firing of rule $p1RElem |
Hi! When using vinyl with a decent amount of record manipulation I'm getting:
Indeed, running it with -fsimpl-tick-factor=200 makes it build. However the build remains very slow (over 2mn for one file). It specifically is slow when I try to make record subtraction :
This is coded this way to avoid a need for UndecidableInstances (which makes compilation time even longer). Is there a way to alleviate the tweaking of simpl-tick-factor or speed up compilation?
The text was updated successfully, but these errors were encountered: