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

Introduce AllEquations.lean #48

Merged
merged 1 commit into from
Sep 28, 2024
Merged

Introduce AllEquations.lean #48

merged 1 commit into from
Sep 28, 2024

Conversation

@nomeata
Copy link
Collaborator Author

nomeata commented Sep 28, 2024

Unfortunately, the file is rather slow. So many operators doing the same type class inference over and over again!

cumulative profiling times:
	attribute application 139ms
	elaboration 15.8s
	fix level params 75ms
	import 65.6ms
	initialization 44.9ms
	instantiate metavars 29.4ms
	interpretation 2.7s
	linting 657ms
	parsing 1.72s
	process pre-definitions 628ms
	share common exprs 138ms
	type checking 346ms
	typeclass inference 85.6s

Maybe the AllEquations file could be rewritten to use inst.op explicitly, for faster processing. Or maybe it's fine as everyone builds this only once anyways.

@nomeata nomeata merged commit c0bf29b into main Sep 28, 2024
2 checks passed
@nomeata nomeata deleted the joachim/all_equations branch September 28, 2024 08:49
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.

1 participant