Skip to content

chore: minimization of variable-induced slowdown - #4253

Closed
kim-em wants to merge 1 commit into
masterfrom
variable_slowdown
Closed

kim-em wants to merge 1 commit into
masterfrom
variable_slowdown

Conversation

@kim-em

@kim-em kim-em commented May 23, 2024

Copy link
Copy Markdown
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
@ghost

ghost commented May 23, 2024

Copy link
Copy Markdown

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.

1 participant