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

chore: minimization of variable-induced slowdown #4253

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

semorrison
Copy link
Collaborator

I minimized this from an example @kbuzzard and @sgouezel found in Mathlib's slowest file.

The basic example is:

-- ... First setup a maze of typeclasses from Mathlib ...

example : Nat := 0

variable [Algebra R S]

example : Nat := 0 -- now takes more than 15x as many heartbeats!

@github-actions github-actions bot added the toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN label May 23, 2024
@leanprover-community-mathlib4-bot
Copy link
Collaborator

Mathlib CI status (docs):

  • ❗ Batteries/Mathlib CI will not be attempted unless your PR branches off the nightly-with-mathlib branch. Try git rebase 2bc41d8f3aced0afb6e8d98dbd81d7d7a325da50 --onto ff37e5d512efcd3981290270a2fc3ecb100bbd0c. (2024-05-23 01:17:41)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants