perf(Tactic/FastInstance): use whnf on data fields#37924
perf(Tactic/FastInstance): use whnf on data fields#37924JovanGerb wants to merge 3 commits intoleanprover-community:masterfrom
whnf on data fields#37924Conversation
PR summary b1b1f5f52dImport changes for modified filesNo significant changes to the import graph Import changes for all files
|
|
!bench |
|
Benchmark results for e283a60 against b1b1f5f are in. Significant changes detected! @JovanGerb
Large changes (1✅)
Medium changes (7✅, 4🟥)
Small changes (25✅, 6🟥) Too many entries to display here. View the full report on radar instead. |
|
That's a nice speedup, but it's worrying that there's also a slowdown. |
| -- This is an invalid term. | ||
| throwError "Incorrect number of arguments for constructor application `{f}`: {args}" | ||
| -- Unify the parameters | ||
| unless ← isDefEq expectedType cls do |
There was a problem hiding this comment.
could it be that the slowdown in certain files could be explained by the changed transparency which affects a few places, like this line here?
|
Good idea, let's see what difference it makes: !bench |
|
Benchmark results for b6ad48a against b1b1f5f are in. There are significant results. @JovanGerb
Large changes (1✅)
Medium changes (7✅, 4🟥)
Small changes (27✅, 10🟥) Too many entries to display here. View the full report on radar instead. |
This PR lets
fast_instance%make even faster instances by usingwhnfon data fields.This PR also changes
withReducibleto the more appropriatewithReducibleAndInstancesin the implementation.