Repository navigation
Conversation
Contributor
Author
|
!bench |
|
Mathlib CI status (docs):
|
Collaborator
|
Reference manual CI status:
|
Collaborator
|
Here are the benchmark results for commit f55abc9. Benchmark Metric Change
=========================================================
+ channel.lean unbounded_seq -2.4%
- liasolver instructions 2.4% (340.0 σ)
+ stdlib process pre-definitions -2.1% (-58.2 σ) |
zwarich
force-pushed
the
ctor-params-erased
branch
from
July 6, 2025 20:21
f55abc9 to
dc2affa
Compare
Contributor
Author
|
!bench |
Collaborator
|
Here are the benchmark results for commit dc2affa. Benchmark Metric Change
============================================
- liasolver instructions 1.8% (335.4 σ)
- stdlib type checking 1.0% (24.5 σ) |
zwarich
marked this pull request as draft
July 6, 2025 20:53
Contributor
Author
|
The codegen differences on that test are quite small and mostly have to do with things like different choices of case/ctor optimizations for |
github-merge-queue Bot
pushed a commit
that referenced
this pull request
Jul 6, 2025
This PR changes the `toMono` pass to consider the type of an application and erase all arguments corresponding to erased params. This enables a lightweight form of relevance analysis by changing the mono type of a decl. I would have liked to unify this with the behavior for constructors, but my attempt to give constructors the same behavior in #9222 (which was in preparation for this PR) had a minor performance regression that is really incidental to the change. Still, I decided to hold off on it for the time being. In the future, we can hopefully extend this to constructors, extern decls, etc.
zwarich
force-pushed
the
ctor-params-erased
branch
from
July 10, 2025 03:59
dc2affa to
5991195
Compare
Contributor
Author
|
!bench |
Collaborator
|
Here are the benchmark results for commit 5991195. |
Contributor
Author
|
Going to revisit this later with related optimizations. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR makes the
toMonoerase all parameters of constructors, not just non-.typeparameters. Types are not used in the mono phase, and this makes constructor applications match other applications.