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: use Ordering.then in deriving Ord #3893

Merged
merged 1 commit into from
Apr 12, 2024

Conversation

digama0
Copy link
Collaborator

@digama0 digama0 commented Apr 12, 2024

This should improve the performance of the deriving a bit since it doesn't have to generate so many matchers. The main motivation though is to make it easier to prove properties about the expression by using more standard functions. The generated implementation should end up the same, since Ordering.then is @[macro_inline].

@digama0 digama0 requested a review from kim-em as a code owner April 12, 2024 18:09
@digama0
Copy link
Collaborator Author

digama0 commented Apr 12, 2024

!bench (just kidding, looks like I still need to ask for help on running the benchbot)

@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 Apr 12, 2024
@leanprover-bot
Copy link
Collaborator

Here are the benchmark results for commit 1824527.Found no runs to compare against.

@nomeata nomeata added this pull request to the merge queue Apr 12, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Apr 12, 2024
@nomeata nomeata added this pull request to the merge queue Apr 12, 2024
Merged via the queue into leanprover:master with commit ddbdfb9 Apr 12, 2024
10 checks passed
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.

3 participants