Skip to content

[Merged by Bors] - perf (LinearAlgebra.Quotient): direct inheritance for extended SMul classes#7459

Closed
mattrobball wants to merge 13 commits intomasterfrom
mrb/subring_inj_inheritance
Closed

[Merged by Bors] - perf (LinearAlgebra.Quotient): direct inheritance for extended SMul classes#7459
mattrobball wants to merge 13 commits intomasterfrom
mrb/subring_inj_inheritance

Conversation

@mattrobball
Copy link
Copy Markdown
Contributor

@mattrobball mattrobball commented Oct 2, 2023

We replace the calls to Function.Surjective.x for constructing instances with a more direct inheritance pattern.


Open in Gitpod

@mattrobball
Copy link
Copy Markdown
Contributor Author

!bench

@leanprover-bot
Copy link
Copy Markdown
Collaborator

Here are the benchmark results for commit c4ec9a2.
There were significant changes against commit f1a26d7:

  Benchmark                                     Metric         Change
  ===================================================================
+ ~Mathlib.Algebra.Category.ModuleCat.Abelian   instructions    -8.7%
+ ~Mathlib.Algebra.Category.ModuleCat.Limits    instructions   -25.5%

@mattrobball mattrobball marked this pull request as ready for review October 5, 2023 00:11
@mattrobball
Copy link
Copy Markdown
Contributor Author

Added TODO for #7432

@mattrobball
Copy link
Copy Markdown
Contributor Author

!bench

@leanprover-bot
Copy link
Copy Markdown
Collaborator

Here are the benchmark results for commit 49fc6f9.
There were significant changes against commit 68abdcd:

  Benchmark                                                           Metric         Change
  =========================================================================================
+ ~Mathlib.Algebra.Category.ModuleCat.Abelian                         instructions    -8.7%
+ ~Mathlib.Algebra.Category.ModuleCat.Limits                          instructions   -25.5%
- ~Mathlib.CategoryTheory.Limits.FilteredColimitCommutesFiniteLimit   instructions     5.3%

@ChrisHughes24
Copy link
Copy Markdown
Member

bors r+

@github-actions github-actions bot added ready-to-merge This PR has been sent to bors. and removed awaiting-review labels Oct 5, 2023
bors bot pushed a commit that referenced this pull request Oct 5, 2023
…lasses (#7459)

We replace the calls to `Function.Surjective.x` for constructing instances with a more direct inheritance pattern.



Co-authored-by: Chris Hughes <33847686+ChrisHughes24@users.noreply.github.com>
Co-authored-by: Matthew Ballard <matt@mrb.email>
@bors
Copy link
Copy Markdown

bors bot commented Oct 5, 2023

Pull request successfully merged into master.

Build succeeded!

The publicly hosted instance of bors-ng is deprecated and will go away soon.

If you want to self-host your own instance, instructions are here.
For more help, visit the forum.

If you want to switch to GitHub's built-in merge queue, visit their help page.

@bors bors bot changed the title perf (LinearAlgebra.Quotient): direct inheritance for extended SMul classes [Merged by Bors] - perf (LinearAlgebra.Quotient): direct inheritance for extended SMul classes Oct 5, 2023
@bors bors bot closed this Oct 5, 2023
@bors bors bot deleted the mrb/subring_inj_inheritance branch October 5, 2023 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-to-merge This PR has been sent to bors.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants