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

perf: improve avoidance of repeated Expr visits in unused variables linter #3076

Merged
merged 1 commit into from
Dec 18, 2023

Conversation

Kha
Copy link
Member

@Kha Kha commented Dec 15, 2023

-43% linter run time in a big proof case

@Kha Kha requested a review from leodemoura as a code owner December 15, 2023 11:35
@Kha Kha added the will-merge-soon …unless someone speaks up label Dec 15, 2023
@Kha
Copy link
Member Author

Kha commented Dec 15, 2023

!bench

@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 Dec 15, 2023
@leanprover-community-mathlib4-bot
Copy link
Collaborator

leanprover-community-mathlib4-bot commented Dec 15, 2023

  • ❗ Mathlib CI will not be attempted unless you rebase your PR onto the 'nightly' branch. (2023-12-15 11:58:56)
  • ✅ Mathlib branch lean-pr-testing-3076 has successfully built against this PR. (2023-12-15 14:16:37) View Log
  • ✅ Mathlib branch lean-pr-testing-3076 has successfully built against this PR. (2023-12-15 15:46:13) View Log

@leanprover-bot

This comment was marked as outdated.

@Kha Kha force-pushed the unused-avoid-revisit branch from a3b172b to 960ac3d Compare December 15, 2023 12:43
@Kha
Copy link
Member Author

Kha commented Dec 15, 2023

!bench

leanprover-community-mathlib4-bot added a commit to leanprover-community/mathlib4 that referenced this pull request Dec 15, 2023
@leanprover-bot
Copy link
Collaborator

Here are the benchmark results for commit 960ac3d.
There were significant changes against commit cddc808:

  Benchmark   Metric                  Change
  ===================================================
- stdlib      attribute application     1.9% (13.0 σ)
- stdlib      tactic execution          1.9% (17.0 σ)
- stdlib      type checking             1.5% (10.1 σ)

@leanprover-community-mathlib4-bot leanprover-community-mathlib4-bot added the builds-mathlib CI has verified that Mathlib builds against this PR label Dec 15, 2023
leanprover-community-mathlib4-bot added a commit to leanprover-community/mathlib4 that referenced this pull request Dec 15, 2023
@Kha
Copy link
Member Author

Kha commented Dec 18, 2023

@Kha Kha enabled auto-merge December 18, 2023 15:56
@Kha Kha added this pull request to the merge queue Dec 18, 2023
Merged via the queue into leanprover:master with commit 3335b2a Dec 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
builds-mathlib CI has verified that Mathlib builds against this PR toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN will-merge-soon …unless someone speaks up
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants