-
Notifications
You must be signed in to change notification settings - Fork 184
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
experiment with Hint Constants Opaque in typeclass search #1780
Comments
Ah, these suggestions are not to fix the problems caused by |
Thanks for clarifying. So here's one approach: Phase 1: add Phase 2: add As you make changes, check the build time and make sure you haven't caused a slowdown. I guess phase 2 can be done without doing phase 1, and might be less work. |
More tips about phase 1 from @JasonGross:
|
In #1779, @JasonGross suggested that typeclass search could be made faster and more predictable by having constants opaque by default and manually marked to unfold when that is appropriate. It would be interesting for someone to experiment with this. You start by putting
somewhere near the start of Overture.v. Then various files in the library will fail to build, so you add necessary hints to fix those places. For example, Jason suggested:
But many others will be needed.
Jason had other guidance as well:
The text was updated successfully, but these errors were encountered: