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: cleaunp grind tests #6616

Merged
merged 1 commit into from
Jan 13, 2025
Merged

chore: cleaunp grind tests #6616

merged 1 commit into from
Jan 13, 2025

Conversation

leodemoura
Copy link
Member

Tests using logInfo were taking an additional two seconds on my machine. This is a performance issue with the old code generator, where we spend all this time specializing the logging functions for GoalM. I have not checked whether the new code generator is also affected by this performance issue.

Here is a small example that exposes the issue:

import Lean

set_option profiler true
open Lean Meta Grind in
def test (e : Expr): GoalM Unit := do
  logInfo e

cc @zwarich

Tests using `logInfo` were taking an additional two seconds on my
machine. This is a performance issue with the old code generator,
where we spend all this time specializing the logging functions for
`GoalM`. I have not checked whether the new code generator is also
affected by this performance issue.

Here is a small example that exposes the issue:
```lean
import Lean

set_option profiler true
open Lean Meta Grind in
def test (e : Expr): GoalM Unit := do
  logInfo e
```

cc @zwarich
@leodemoura leodemoura added the changelog-no Do not include this PR in the release changelog label Jan 12, 2025
@leodemoura leodemoura enabled auto-merge January 12, 2025 23:47
@github-actions github-actions bot temporarily deployed to lean-lang.org/lean4/doc January 12, 2025 23:59 Inactive
@leodemoura leodemoura added this pull request to the merge queue Jan 13, 2025
@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 Jan 13, 2025
@leanprover-community-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 af8f3d1ec1cb69c527db61448828bf57070aa248 --onto d2c4471cfa4611977bf4927b5cd849df1a4272b7. (2025-01-13 00:12:00)

Merged via the queue into master with commit aa95a1c Jan 13, 2025
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog-no Do not include this PR in the release changelog 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