Repository navigation
[Merged by Bors] - perf: lower priority of sheafToPresheaf_isRightAdjoint - #41462
felixpernegger wants to merge 5 commits into
Conversation
|
!bench |
|
Benchmark results for 306d73b against d8d7c66 are in. There are significant results. @felixpernegger
Large changes (3✅)
Medium changes (2✅)
Small changes (4✅)
|
PR summary 39a7059f7cImport changes for modified filesNo significant changes to the import graph Import changes for all files
|
…icitly (#41483) This is beneficial for the same reasons as #40964. This particular change matters for #41462; extracted from that PR. Co-authored-by: felixpernegger <[email protected]>
|
The one remaining change in this PR (when master is merged) is going to be this reduced priority hack having a surprising effect on compile time. My instinct is that before this is merged we should at least have some understanding as to what is going on and why. For example if it's the same phenomenon as #lean4 > abbrev causes unfolding @ 💬 then the actual fix might be something else (a shortcut instance, for example). |
…icitly (leanprover-community#41483) This is beneficial for the same reasons as leanprover-community#40964. This particular change matters for leanprover-community#41462; extracted from that PR. Co-authored-by: felixpernegger <[email protected]>
…icitly (leanprover-community#41483) This is beneficial for the same reasons as leanprover-community#40964. This particular change matters for leanprover-community#41462; extracted from that PR. Co-authored-by: felixpernegger <[email protected]>
…icitly (leanprover-community#41483) This is beneficial for the same reasons as leanprover-community#40964. This particular change matters for leanprover-community#41462; extracted from that PR. Co-authored-by: felixpernegger <[email protected]>
…icitly (leanprover-community#41483) This is beneficial for the same reasons as leanprover-community#40964. This particular change matters for leanprover-community#41462; extracted from that PR. Co-authored-by: felixpernegger <[email protected]>
|
!bench |
|
Benchmark results for 80b8554 against 1fe0a51 are in. There are significant results. @felixpernegger
Large changes (3✅)
Medium changes (3✅)
Small changes (3✅)
|
|
It looks like the slowdown is coming from instHasWeakSheafifyOfHasSheafify: When try to synthesise For the competing instHasWeakSheafifyOfHasSheafify, HasSheafify on the other hand has useful instances, which make the synthesis fast. So probably making instance shortcuts for Modules and the Light- things affected here, would also work, but as the given instance is so complicated already; simply lowering its priority (and thus trying it later), seems the better choice to me. (Unless maybe down the line this instance as a mathematical statement is really central, however this doesnt seem the case now. But since I dont understand the math here I cant comment on that) (I used GPT 5.6 Sol for parts of this investigation for what its worth) |
|
-awaiting-author |
|
Thanks! bors merge |
This was found in the course of #41222 (where this is needed to avoid big increases) by Fable 5, but should already be beneficial now. Co-authored-by: Batixx <[email protected]>
|
Pull request successfully merged into master. Build succeeded: |
sheafToPresheaf_isRightAdjointsheafToPresheaf_isRightAdjoint
…community#41462) This was found in the course of leanprover-community#41222 (where this is needed to avoid big increases) by Fable 5, but should already be beneficial now. Co-authored-by: Batixx <[email protected]>
This was found in the course of #41222 (where this is needed to avoid big increases) by Fable 5, but should already be beneficial now.