WIP: tinker with Function.Surjective.module#6144
Conversation
kbuzzard
commented
Jul 26, 2023
|
!bench |
|
Here are the benchmark results for commit 8b03d56. Benchmark Metric Change
===================================================================
- ~Mathlib.Algebra.Category.ModuleCat.Abelian instructions 5.8%
- ~Mathlib.Algebra.Category.ModuleCat.Limits instructions 15.7% |
|
I wonder why this change has such a detrimental effect on those files? Note to self -- chase this up. Note to anyone else reading: I remove a "with" and then in contrast to the usual behaviour (either nothing, or a bunch of files go quicker), here a bunch of files go slower. |
|
Mathlib.Algebra.Category.ModuleCat.Limits is 250 lines and compiles on my machine in 8 seconds, so a 15.7% increase is not the end of the world :-) Around half the time is spent on one declaration, With the change in this PR, the declaration now takes about 6 seconds, it goes up to 188426 heartbeats and the trace is now 49911 lines, an increase of 25%. |
|
master now has the change that this PR makes because it was also (essentially) made in #6241 . Note that that PR was also benchmarked and similar slowdowns were observed in the same two files. |