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

Fast check for the presence of a universe in the environment. #633

Merged
merged 1 commit into from
May 31, 2024

Conversation

ppedrot
Copy link
Collaborator

@ppedrot ppedrot commented May 31, 2024

The previous code was very inefficient, as it was basically rebuilding the whole set of universes from the environment in O(n) at each invocation.

The previous code was very inefficient, as it was basically rebuilding the
whole set of universes from the environment in O(n) at each invocation.
@gares
Copy link
Contributor

gares commented May 31, 2024

Thanks! May I ask how you found this inefficiency? Is there a development suffering from this problem in CI?

@gares gares merged commit 2dbfa59 into LPCIC:coq-master May 31, 2024
16 checks passed
@ppedrot
Copy link
Collaborator Author

ppedrot commented May 31, 2024

Random runtime profiling of mathcomp while I was debugging something else. FTR there are a lot of low-hanging fruits in coq-elpi, the leading one being probably the little dance to keep global and local constraints in sync, which accounts for 1/3 of the coq-elpi runtime or so on average.

@ppedrot ppedrot deleted the fast-univ-global-check branch May 31, 2024 14:05
@gares
Copy link
Contributor

gares commented May 31, 2024

Yup. You did tell me in some API it should be possible to just thread this data instead of recomputing it, but I naver managed to find the time to try to kill the demote crap... help is mostly welcome.

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.

2 participants