[Merged by Bors] - chore: remove CoeFun instances where FunLike is available#17900
[Merged by Bors] - chore: remove CoeFun instances where FunLike is available#17900Vierkantor wants to merge 2 commits intomasterfrom
CoeFun instances where FunLike is available#17900Conversation
PR summary 7d3c2804e4Import changes for modified filesNo significant changes to the import graph Import changes for all files
|
|
!bench |
|
Here are the benchmark results for commit e4181dc. Benchmark Metric Change
===================================================================
- ~Mathlib.Analysis.InnerProductSpace.Adjoint instructions 8.5% |
During the port we found that `FunLike` is robust enough not to need an extra `CoeFun` shortcut. Let's see if that rule can be consistently applied to the whole of the library. There is still duplication between `FunLike` and `CoeFun` for `Grp`, `Mon`, `CommGrp` and `CommMon`, which will need a more thorough fix. See also #17866. This is the first half of the changes, to see if those work without slowdowns.
e4181dc to
7d3c280
Compare
|
!bench |
|
Here are the benchmark results for commit 7d3c280. |
|
Progress! So I suppose I'll make this PR ready for review and open a new one with half of the remaining changes. |
|
Thanks - landing this piece-wise is still a great improvement! |
|
🚀 Pull request has been placed on the maintainer queue by grunweg. |
|
bors merge |
During the port we found that `FunLike` is robust enough not to need an extra `CoeFun` shortcut. Let's see if that rule can be consistently applied to the whole of the library. There is still duplication between `FunLike` and `CoeFun` for `Grp`, `Mon`, `CommGrp` and `CommMon`, which will need a more thorough fix. See also #17866. This is the second half of #17870, and doesn't affect the benchmarks.
|
Pull request successfully merged into master. Build succeeded: |
CoeFun instances where FunLike is availableCoeFun instances where FunLike is available
During the port we found that
FunLikeis robust enough not to need an extraCoeFunshortcut. Let's see if that rule can be consistently applied to the whole of the library.There is still duplication between
FunLikeandCoeFunforGrp,Mon,CommGrpandCommMon, which will need a more thorough fix. See also #17866.This is the second half of #17870, and doesn't affect the benchmarks.