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: issue at binop% and binrel% elaborators #4092

Merged
merged 1 commit into from
May 8, 2024

Conversation

leodemoura
Copy link
Member

@leodemoura leodemoura commented May 7, 2024

This issue was affecting several Mathlib files.

@mattrobball @semorrison This is a different solution for the issue. The comment at Extra.lean describes the new solution and documents the new issues found with the previous one.

closes #4085

@github-actions github-actions bot temporarily deployed to lean-lang.org/lean4/doc May 7, 2024 16:49 Inactive
@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 7, 2024
@leanprover-community-mathlib4-bot
Copy link
Collaborator

Mathlib CI status (docs):

  • ❗ Std/Mathlib CI will not be attempted unless your PR branches off the nightly-with-mathlib branch. Try git rebase 03040618b8f9b35b7b757858483e57340900cdc4 --onto 883a3e752d78cf0d30628817379a6001252b5595. (2024-05-07 17:35:42)
  • ❗ Std CI can not be attempted yet, as the nightly-testing-2024-05-07 tag does not exist there yet. We will retry when you push more commits. If you rebase your branch onto nightly-with-mathlib, Std CI should run now. (2024-05-07 18:26:36)
  • ✅ Mathlib branch lean-pr-testing-4092 has successfully built against this PR. (2024-05-08 01:26:17) View Log

@leodemoura leodemoura force-pushed the perf_binop_binrel_alternative branch from 4ad4b5f to 94bf4a8 Compare May 7, 2024 17:40
Yet another candidate solution.
This issue was affecting several Mathlib files.
@leodemoura leodemoura force-pushed the perf_binop_binrel_alternative branch from 94bf4a8 to 932fb1c Compare May 7, 2024 17:41
@leodemoura
Copy link
Member Author

Rebased on top of nightly-with-mathlib

@github-actions github-actions bot temporarily deployed to lean-lang.org/lean4/doc May 7, 2024 17:50 Inactive
@mattrobball
Copy link
Contributor

Mathlib master builds locally with this cherry-picked on top of v4.8.0-rc1 without any changes. Anecdotally, it seems quite snappy.

@mattrobball
Copy link
Contributor

leanprover-community/mathlib4#12742 has a benchmark run using the above. Overall -1.1T build instructions and no individual files suffered significant regressions but the wall clock was up +37%. I think the latter is anomaly. Will re-run.

@mattrobball
Copy link
Contributor

Wall clock was an anomaly. Last run was neutral.

@semorrison semorrison added this to the v4.8.0-rc2 milestone May 7, 2024
@semorrison semorrison added this pull request to the merge queue May 7, 2024
@semorrison
Copy link
Collaborator

(The automatic Mathlib run didn't happen because of a CI breakage induced by the std -> batteries rename. Hopefully fixed going forward by leanprover-community/batteries#785.)

@github-actions github-actions bot temporarily deployed to lean-lang.org/lean4/doc May 7, 2024 23:34 Inactive
leanprover-community-mathlib4-bot added a commit to leanprover-community/batteries that referenced this pull request May 8, 2024
leanprover-community-mathlib4-bot added a commit to leanprover-community/mathlib4 that referenced this pull request May 8, 2024
Merged via the queue into master with commit 2a5ca00 May 8, 2024
38 checks passed
github-actions bot pushed a commit that referenced this pull request May 8, 2024
This issue was affecting several Mathlib files.

@mattrobball @semorrison This is a different solution for the issue. The
comment at `Extra.lean` describes the new solution and documents the new
issues found with the previous one.

closes #4085

(cherry picked from commit 2a5ca00)
semorrison pushed a commit that referenced this pull request May 8, 2024
This issue was affecting several Mathlib files.

@mattrobball @semorrison This is a different solution for the issue. The
comment at `Extra.lean` describes the new solution and documents the new
issues found with the previous one.

closes #4085

(cherry picked from commit 2a5ca00)
@leanprover-community-mathlib4-bot leanprover-community-mathlib4-bot added the builds-mathlib CI has verified that Mathlib builds against this PR label May 8, 2024
@github-actions github-actions bot temporarily deployed to lean-lang.org/lean4/doc May 8, 2024 01:39 Inactive
semorrison pushed a commit that referenced this pull request May 21, 2024
This issue was affecting several Mathlib files.

@mattrobball @semorrison This is a different solution for the issue. The
comment at `Extra.lean` describes the new solution and documents the new
issues found with the previous one.

closes #4085

(cherry picked from commit 2a5ca00)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport releases/v4.8.0 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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants